Dropdown box support for italic font |
Dropdown box support for italic font |
HeidiR |
Jan 25 2011, 07:41 AM
Post
#1
|
Group: Members Posts: 3 Joined: 25-January 11 Member No.: 13,703 |
I'm trying to make the text of the first dropdown option italic with a font color of silver. In the code below, the font color works correctly. However, the italic style does not. Is italic supported in dropdowns?
<select> <option value = 't1'> 1 </option> <option style='font-style: italic; color: silver;' value = 't2'> 2 </option> <option value = 't3'> 3 </option> </select> |
pandy |
Jan 25 2011, 07:54 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
By some browsers, not by others.
|
HeidiR |
Jan 25 2011, 08:14 AM
Post
#3
|
Group: Members Posts: 3 Joined: 25-January 11 Member No.: 13,703 |
|
Frederiek |
Jan 25 2011, 08:24 AM
Post
#4
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
Have a look here: http://www.electrictoolbox.com/style-selec...up-options-css/
|
pandy |
Jan 25 2011, 08:29 AM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
HeidiR |
Jan 25 2011, 12:54 PM
Post
#6
|
Group: Members Posts: 3 Joined: 25-January 11 Member No.: 13,703 |
According to http://www.electrictoolbox.com/style-selec...up-options-css/ it should work in Chrome and FF but it doesn't. Maybe it's best just to leave font-style alone!
|
pandy |
Jan 25 2011, 05:39 PM
Post
#7
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
For me it works in FF but not in Iron (should be the same as Chrome). Maybe the support differs between minor versions.
Style away - just don't depend on it working. |
Lo-Fi Version | Time is now: 23rd April 2024 - 09:28 PM |