aligning form boxes

Discussion in 'CSS' started by rojojat, Dec 3, 2008.

  1. #1
    Hi, does anyone have a simple way to vertically align text input boxes so that they are simetrical?
    Thanks
     
    rojojat, Dec 3, 2008 IP
  2. belkocrnic

    belkocrnic Active Member

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    If you have problems with html forms just use coffee cup web form builder, it is free and good for beginners
     
    belkocrnic, Dec 3, 2008 IP
  3. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can do this using CSS. Can you show us your page so I can help?
     
    LeetPCUser, Dec 4, 2008 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    rojo:
    if your labels and your inputs are all inlines, then you can use vertical-align: middle to line them up.

    However usually my labels are floated, which makes them blocks. What I've done in the past is made the line-height of the labels 150%.

    This is assuming you are talking about
    Label: _______input_______________

    lining up. Without code we can only guess.
     
    Stomme poes, Dec 9, 2008 IP