473,500 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to have IE show different font styles for individual options in a <select> ?

The following works in Firefox buy not in Internet Explorer:

<select>
<option> option1 </option>
<option style="font-style: bold"> option2 </option>
</select>

Are there any workarounds to allow IE to show different font styles for
different elements in a select list?

Jul 24 '05 #1
4 6774
Glen K wrote:
The following works in Firefox buy not in Internet Explorer:

<select>
<option> option1 </option>
<option style="font-style: bold"> option2 </option>
</select>

Are there any workarounds to allow IE to show different font styles for
different elements in a select list?

Yes. Use "font-weight".
There is no "bold" attribute for "font-style" in CSS. Firefox must be
guessing what you really meant.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 24 '05 #2
On Thu, 21 Apr 2005 08:57:25 -0700, Jim Moe wrote:
Glen K wrote:
[quoted text muted]

Yes. Use "font-weight".
There is no "bold" attribute for "font-style" in CSS. Firefox must be
guessing what you really meant.


That doesn't work either. As far as I know IE doesn't support
anything other than color for the <option> tag.

Jul 24 '05 #3
These two articles describe what you're looking for:
http://www.devarticles.com/c/a/Web-S...ng-the-Select/
http://easy-designs.net/articles/replaceSelect/

- Fatalis Erratum

Jul 24 '05 #4
On Thu, 21 Apr 2005 14:17:46 -0700, Fatalis Erratum wrote:
These two articles describe what you're looking for:
http://www.devarticles.com/c/a/Web-S...ng-the-Select/
http://easy-designs.net/articles/replaceSelect/

- Fatalis Erratum


Thanks, I'll give these a try. Although I am still worried about
performance issues since some of my list boxes are going to have a large
number of options and I'm guessing the browser's built in <select> is
going to perform better than one implemented in JavaScript.

Jul 24 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3184
by: Salve Håkedal | last post by:
When I select Februar here and sends, selection returns to Januar. I know why: no option is marked selected... But can php get this right in an easy way? <html><head><title>Part of a bigger...
7
2255
by: Hal Vaughan | last post by:
I have a sample script from a book ("Beginning JavaScript" by Paul Wilton) that removes or adds a choice to a <SELECT> element. The <FORM> is form1 and the <SELECT> is theDay. The example uses...
3
23284
by: Darren | last post by:
Please Help Me!! I've created a typical <form> and a <select> element. The options are created dynamically from my access database (using asp). There are about 70 options, and when you click...
7
2008
by: | last post by:
I can't get IE 6 to read the values in my <SELECT..> data entry fields. Netscape 7 and Opera see them, and IE will pass the values to the database, but the javascript validation script gets a null...
5
8290
by: Brian Foley | last post by:
Hello, I am used to using the label tag with check boxes and radio buttons in html forms. This allows me to click on the text of the label to activate/deactivate the check box / button, rather...
1
1826
by: frey | last post by:
i tried to create a dropdown menu and use the option as a control to change content inside another text area the code is like this: <select name="xxxx"><option onclick="changeunitprice(29.87)"...
5
8717
by: Isha | last post by:
Hi all, I wanted to change the background color for only the first option in a select box, but following changed the background color for the whole dropdown box. <select name="alltags"...
4
6072
by: html | last post by:
Hello all, I need to change the colour of my text. For the paragraph I do document.fgColor ="blue" ; but how do I do this for the select tags? ....and I prefer it to apply to all select tags...
1
1382
by: thesti | last post by:
hello, i need to validate birthday using javascript. the validation is that for example user couldn't choose the date 29, 30 and 31 if she has chosen February as the month before and the year % 4...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.