Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. basic Dropdown item formating question

basic Dropdown item formating question

Scheduled Pinned Locked Moved Web Development
htmlsysadminhelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SomeGuyThatIsMe
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • S SomeGuyThatIsMe

      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.

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      I'm pretty sure that IE simply doesn't support italics within drop down list items. You might consider using a <div> tag with your options that you could popup upon a click. Something like this[^]?

      MishaInTheCloud.blogspot.com

      S 1 Reply Last reply
      0
      • M Mike Ellison

        I'm pretty sure that IE simply doesn't support italics within drop down list items. You might consider using a <div> tag with your options that you could popup upon a click. Something like this[^]?

        MishaInTheCloud.blogspot.com

        S Offline
        S Offline
        SomeGuyThatIsMe
        wrote on last edited by
        #3

        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.

        M 1 Reply Last reply
        0
        • S SomeGuyThatIsMe

          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.

          M Offline
          M Offline
          Marc Firth
          wrote on last edited by
          #4

          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.

          Neonlight

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups