Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

forms, txt size and bg colour

Options
  • 22-03-2005 12:50pm
    #1
    Registered Users Posts: 166,026 ✭✭✭✭


    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 Posts: 68,317 ✭✭✭✭seamus


    I assume it's a select.

    You'll need to change its attributes through CSS.


  • Registered Users Posts: 21,257 ✭✭✭✭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 Posts: 166,026 ✭✭✭✭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 Posts: 2,031 ✭✭✭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 Posts: 166,026 ✭✭✭✭LegacyUser


    found a non css way, ta.


  • Advertisement
  • Registered Users Posts: 21,257 ✭✭✭✭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 Posts: 4,478 ✭✭✭wheres me jumpa


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


  • Registered Users Posts: 21,257 ✭✭✭✭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