Forum Moderators: not2easy

Message Too Old, No Replies

css for selection box IE and Firefox

         

johnhelen

5:50 am on Dec 5, 2007 (gmt 0)

10+ Year Member



Hello
I want to create a red color for selection type in a form like this

<select name="test" class="error">
<option value="">Select</option>
<option value="03" selected="selected">03</option>
<option value="04">04</option>
<option value="06">06</option>
<option value="07">07</option><
option value="09">09</option>
</select>

In stylesheet, I have:

.error {
border-color:red;
}

But the red box only be seen in firefox but not IE

Please help!
Many thanks

londrum

9:49 pm on Dec 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i haven't tested it, but this will probably work alright

select { border: 1px solid red; }

dreamcatcher

12:10 pm on Dec 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don`t believe you can format the border in IE.

dc