basic Dropdown item formating question
-
I've been looking off and on for a few days now, and have several solutions none of which work in IE. I would love to be able to make a single item's text italic. I can change its fore color, bg color. and i can make it do just about anything in firefox. ddl.Items[1].Attributes.Add("Style", "font-style:italic;"); ddl.Items[1].Attributes.Add("class", "bold"); yes i'm sure that item 1 exists, I've tried every different way of turning italics on that i can find, but IE just wont render it. FireFox 3.5 will work with either of the above. any help would be appreciated. I havent done anything special in the HTML, just gave it an ID and set runat=server. And i manually add each item in the code behind.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
I've been looking off and on for a few days now, and have several solutions none of which work in IE. I would love to be able to make a single item's text italic. I can change its fore color, bg color. and i can make it do just about anything in firefox. ddl.Items[1].Attributes.Add("Style", "font-style:italic;"); ddl.Items[1].Attributes.Add("class", "bold"); yes i'm sure that item 1 exists, I've tried every different way of turning italics on that i can find, but IE just wont render it. FireFox 3.5 will work with either of the above. any help would be appreciated. I havent done anything special in the HTML, just gave it an ID and set runat=server. And i manually add each item in the code behind.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Mike Ellison wrote:
I'm pretty sure that IE simply doesn't support italics within drop down list items.
thats what i was begining to think, i dont understand why they do that kinda crap. I'm looking at the page you sent, seems like a lot of work just for an italic item but i'll probably end up using it. Thanks for the help.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Mike Ellison wrote:
I'm pretty sure that IE simply doesn't support italics within drop down list items.
thats what i was begining to think, i dont understand why they do that kinda crap. I'm looking at the page you sent, seems like a lot of work just for an italic item but i'll probably end up using it. Thanks for the help.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
it's a bit more work but if you havent used it, you'll be suprised what you can do with jquery. And just to confirm: IE doesn't let you use italics in dropdowns.