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

Bit of help with alligning a drop down

Options
  • 17-06-2010 4:28pm
    #1
    Registered Users Posts: 853 ✭✭✭


    Guys, I have tried umpteen different ways via HTML to align a drop down list, and it wont budge. Can some one tell me how to input the proper align command (in my case right) to the below drop down code;

    <form action="">
    <select name="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="fiat">Fiat</option>
    <option value="audi">Audi</option>
    </select>
    </form>


Comments

  • Registered Users Posts: 1,829 ✭✭✭lil_lisa


    You'll have to give more information, what way are you trying to align it? Do you want to center the ddl in the page? Or align the words themselves?


  • Registered Users Posts: 853 ✭✭✭DeadlyByDesign


    Hi,

    Basically I want the entire dd on the right hand side of the page. I've tried to put the align:right in the form element but that does not seem to work. I know it is something very simple I am missing


  • Registered Users Posts: 1,829 ✭✭✭lil_lisa


    <form align="right"> should work, is it inheriting from any CSS classes?


  • Registered Users Posts: 853 ✭✭✭DeadlyByDesign


    lil_lisa wrote: »
    <form align="right"> should work, is it inheriting from any CSS classes?

    No none at all, I'll give that a go now. Thanks a mill in advance


  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    <select name="cars" style="float:right;">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="fiat">Fiat</option>
    <option value="audi">Audi</option>
    </select>
    <br />

    should work


  • Advertisement
  • Registered Users Posts: 9,137 ✭✭✭RobertFoster


    tricky D wrote: »
    <select name="cars" style="float:right;">

    should work
    Or:-
    [html]<form action="" style="text-align:right">[/html]
    If you want all form elements right aligned.


Advertisement