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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

forms, txt size and bg colour

  • 22-03-2005 11:50am
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    I assume it's a select.

    You'll need to change its attributes through CSS.


  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭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,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, Registered Users 2 Posts: 2,032 ✭✭✭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,026 ✭✭✭✭LegacyUser


    found a non css way, ta.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭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,479 ✭✭✭wheres me jumpa


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


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