Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats wrong with my CSS?

Tags:

html

css

php

I'm trying to get my name and trip input fields to line, but they're all over the place. http://prime.programming-designs.com/test_forum/viewboard.php?board=0

#formdiv{
    margin: auto;
    text-align: left;
    width: 30%;
}

.fielddiv1{

    background-color: #222222;
    border: 2px solid #333333;
    vertical-align: middle;
    width: 45%;
    float: left;
}

.fielddiv2{

    background-color: #222222;
    border: 2px solid #333333;
    vertical-align: middle;
    width: 100%;
}

.fieldtext{
    width: 100%;
    background-color: #333333;
}
like image 275
William Avatar asked Jan 20 '26 10:01

William


2 Answers

Remove the <br /> that's between those two fielddiv1 div's

like image 180
poke Avatar answered Jan 22 '26 02:01

poke


You have a <br> between the divs that contain them.

like image 38
Vasily Korolev Avatar answered Jan 22 '26 02:01

Vasily Korolev