css and <select>

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chamomile

    css and <select>

    I've only just come accross this newsgroup, so apologies if I seem to be
    cross-posting...

    this may be an old chestnut, but has anyone ever come accross
    a straightforward way of styling a <select> element?
    In particular the (always grey?) drop-down button color.

    (This, and the 'Browse' button on an <input type='file'> seems
    forever doomed to eternal greyness.)

    I'd really like a css way of altering the grey - I've come accross
    some exotic javascripts for making pseudo <select>s, but using that with php
    html generation and a lot of <select>s populated
    by a database for editing gets to be a tad over-complicated and rather top
    heavy


  • Jim Moe

    #2
    Re: css and &lt;select&g t;

    Chamomile wrote:[color=blue]
    >
    > this may be an old chestnut, but has anyone ever come accross
    > a straightforward way of styling a <select> element?
    > In particular the (always grey?) drop-down button color.
    >
    > (This, and the 'Browse' button on an <input type='file'> seems
    > forever doomed to eternal greyness.)
    >[/color]
    Those are widgets inherent to the operating system; their shapes and
    colors are defined in the OS and the user's preferences. The color is gray
    because that is the color you have selected in the color theme.
    Since you are using Windows, you can change these colors for yourself
    by RMB-click on the desktop, select Properties, and then the Appearance page.
    To answer your question: No, you cannot change the colors of those
    parts using HTML.

    --
    jmm dash list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)

    Comment

    • Tony

      #3
      Re: css and &lt;select&g t;

      "Jim Moe" <jmm-list.AXSPAMGN@s ohnen-moe.com> wrote in message
      news:8fqdnZwOBM vWoRffRVn-qg@giganews.com ...[color=blue]
      > Chamomile wrote:[color=green]
      >>
      >> this may be an old chestnut, but has anyone ever come accross
      >> a straightforward way of styling a <select> element?
      >> In particular the (always grey?) drop-down button color.
      >>
      >> (This, and the 'Browse' button on an <input type='file'> seems
      >> forever doomed to eternal greyness.)
      >>[/color]
      > Those are widgets inherent to the operating system; their shapes and
      > colors are defined in the OS and the user's preferences. The color is gray
      > because that is the color you have selected in the color theme.
      > Since you are using Windows, you can change these colors for yourself by
      > RMB-click on the desktop, select Properties, and then the Appearance page.
      > To answer your question: No, you cannot change the colors of those parts
      > using HTML.[/color]

      Best I could think of is to use a faux-drop-down made in JavaScript, but, of
      course, that would only work for those who have JavaScript...


      Comment

      • Chamomile

        #4
        Re: css and &lt;select&g t;


        "Tony" <someone@somewh ere.not> wrote in message
        news:118krlt4o1 1vs6e@corp.supe rnews.com...[color=blue]
        > "Jim Moe" <jmm-list.AXSPAMGN@s ohnen-moe.com> wrote in message
        > news:8fqdnZwOBM vWoRffRVn-qg@giganews.com ...[color=green]
        > > Chamomile wrote:[color=darkred]
        > >>
        > >> this may be an old chestnut, but has anyone ever come accross
        > >> a straightforward way of styling a <select> element?
        > >> In particular the (always grey?) drop-down button color.
        > >>
        > >> (This, and the 'Browse' button on an <input type='file'> seems
        > >> forever doomed to eternal greyness.)
        > >>[/color]
        > > Those are widgets inherent to the operating system; their shapes and
        > > colors are defined in the OS and the user's preferences. The color is[/color][/color]
        gray[color=blue][color=green]
        > > because that is the color you have selected in the color theme.
        > > Since you are using Windows, you can change these colors for yourself[/color][/color]
        by[color=blue][color=green]
        > > RMB-click on the desktop, select Properties, and then the Appearance[/color][/color]
        page.[color=blue][color=green]
        > > To answer your question: No, you cannot change the colors of those[/color][/color]
        parts[color=blue][color=green]
        > > using HTML.[/color]
        >
        > Best I could think of is to use a faux-drop-down made in JavaScript, but,[/color]
        of[color=blue]
        > course, that would only work for those who have JavaScript...
        >
        >[/color]
        Thanks, yes I've looked at the Javascript way - it's seems fiendishly
        complex especially when
        generating pages from php for a lot of select inputs for database editing.
        The <select> input
        is really easy to work with php - being easy to generate dynamically - I am
        just fed up
        with the nasty grey button ruining all my subtle color schemes! It could
        become an obsession.
        It seems curious to me that scroll bars and <select> background colors
        etc.are accesible to css in minute detail,
        but the <select> drop-down button isn't . Hey ho. Do you know of a nice
        packaged javascript .js script
        and function call that some kind soul has made available that will do the
        'faux' job without giving me a brain seizure?


        Comment

        Working...