Need some CSS Help - How to align ?

Discussion in 'CSS' started by poseidon, Jul 19, 2008.

  1. #1
    I have a search form -

    [​IMG]

    the search box belongs to class form1 and the submit button belongs to form submit button. Now I need to align them, the search box and the submit button, how can I do it ? :)
     
    poseidon, Jul 19, 2008 IP
  2. Sp00ky

    Sp00ky Member

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #2
    Hi my friend write this command align="" write what side you want for left, right or center inside your <div class="form1-element-"> for example for left write:
    <div class="form1-element-" align="left"> and next about submit button the same command
    for <div class="form-submit-button" align="left"> .
    I hope to help you :)
     
    Sp00ky, Jul 19, 2008 IP
    poseidon likes this.
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Although that's not valid code. align has been deprecated. It will work in most (if not all) browsers, but in css you would use margins to line them up.

    Thing is, they should be lining up be default (in an unstyled form) so what's in your code to make them NOT line up?
     
    Stomme poes, Jul 19, 2008 IP
    poseidon likes this.