Hello,
Is it possible to put CSS into a select object?
I tried this but it doesn't work...
<select size="1" class=fillin name="pSector">
<OPTION>A
<OPTION>B
<OPTION>C
</SELECT>
Thx a lot,
Luc Slenders.Yes, styles on a SELECT work. If you would show what your style definition code is, perhaps someone can tell you what is wrong.
This works in IE 5.5:<style type="text/css">
.f {background-color: #FFFFC0; color: green}
</style>
<form onsubmit="return false">
<select class="f">
<option>A
<option>B
<option>C
</select>
</form>Sorry... this is the CSS I would like to do on the selection:
.fillin {border: 1px #003300 solid}According to <!-- m --><a class="postlink" href="http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/select.asp">http://msdn.microsoft.com/workshop/auth ... select.asp</a><!-- m --> , IE does not support borders for a SELECT object. NS 6 supports it, but it does not exactly do what I would expect.
As a work-around, place the select inside of a span and apply the style to the span to get your border.
Is it possible to put CSS into a select object?
I tried this but it doesn't work...
<select size="1" class=fillin name="pSector">
<OPTION>A
<OPTION>B
<OPTION>C
</SELECT>
Thx a lot,
Luc Slenders.Yes, styles on a SELECT work. If you would show what your style definition code is, perhaps someone can tell you what is wrong.
This works in IE 5.5:<style type="text/css">
.f {background-color: #FFFFC0; color: green}
</style>
<form onsubmit="return false">
<select class="f">
<option>A
<option>B
<option>C
</select>
</form>Sorry... this is the CSS I would like to do on the selection:
.fillin {border: 1px #003300 solid}According to <!-- m --><a class="postlink" href="http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/select.asp">http://msdn.microsoft.com/workshop/auth ... select.asp</a><!-- m --> , IE does not support borders for a SELECT object. NS 6 supports it, but it does not exactly do what I would expect.
As a work-around, place the select inside of a span and apply the style to the span to get your border.