Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

forms, txt size and bg colour

  • 22-03-2005 12:50PM
    #1
    Registered Users, Registered Users 2 Posts: 166,006 ✭✭✭✭


    hi, i've got a jump menu, how do i change the font size, colour and bgcolor etc..

    i've been looking online and can only see examples of this done for text area's.

    ta.


Comments

  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    I assume it's a select.

    You'll need to change its attributes through CSS.


  • Registered Users, Registered Users 2 Posts: 21,278 ✭✭✭✭Eoin


    What seamus said. You can set the style properties for each option or for the whole select box:
    <select size="3">
    	<option value="1" style="background-color: green; color: white">option 1</option>
    	<option value="2" style="background-color: red; color: white">option 2</option>
    	<option value="3" style="background-color: yellow; color: blue">option 3</option>
    </select>
    <p>
    <select style="background-color: green; color: white">
    	<option value="1">option 1</option>
    	<option value="2">option 2</option>
    	<option value="3">option 3</option>
    </select>
    

    This will look like the attached image.


  • Registered Users, Registered Users 2 Posts: 166,006 ✭✭✭✭LegacyUser


    yep, i'll have a look on google again
    seamus wrote:
    I assume it's a select.

    You'll need to change its attributes through CSS.


  • Registered Users, Registered Users 2 Posts: 2,011 ✭✭✭colm_c


    Yeah you can style it with CSS, but be warned that each browser will render it slightly differently, and some browsers even ignore it, like Safari on Mac OS... all the buttons look like Apple buttons...


  • Registered Users, Registered Users 2 Posts: 166,006 ✭✭✭✭LegacyUser


    found a non css way, ta.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 21,278 ✭✭✭✭Eoin


    paperclip wrote:
    found a non css way, ta.

    Will you post it here then? (seeing as I went to the trouble earlier!)


  • Registered Users, Registered Users 2 Posts: 4,480 ✭✭✭wheres me jumpa


    yeah im new to css so wouldnt mind a non css solution


  • Registered Users, Registered Users 2 Posts: 21,278 ✭✭✭✭Eoin


    eoin_s wrote:
    Will you post it here then? (seeing as I went to the trouble earlier!)

    @paperclip - wanna post that code, a couple of us asked for it?


Advertisement