SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast MiddleFingerMan's Avatar
    Join Date
    Jul 2002
    Location
    Calgary, Alberta, Canada
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Drop Down Form Attributes

    Okay ... I know that one can use CSS to set font type, size and colour with form elements, my question being, can I do that for just one or two things in a drop down menu? Say bold the top one and third one down or something?

  2. #2
    SitePoint Evangelist
    Join Date
    Oct 2001
    Posts
    439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no I dont believe you can do this.......I tried a few and it didnt work.....may not be the case with all browsers though....

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2002
    Location
    Atlanta
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi-

    Don't forget about using inline styles for the elements that you want to single out:

    <span style="color: blue;"><element ... ></span>

    M

  4. #4
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can set the background and text colours of seperate options in a select dropdown menu, but unfortunately you can't set the font size or make individual options bold/italic.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •