1 reply [Last post]
hughbe
hughbe's picture
Offline
newbie
Last seen: 2 years 19 weeks ago
Joined: 2011-12-03
Posts: 2
Points: 4

I have a problem with my html form, where the <select>...</select> or dropdown select is not actually after the previous <input>, as the markup suggests, but it is in the center of the form.

I have tried to be as clear as possible, so here is a fiddle with my problem in:
http://jsfiddle.net/3FvBt/

As you can see, the <select>...</select> is in the center.

Thanks a lot.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 34 weeks 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Contain your floats

It's because you've floated everything that precedes the select but haven't cleared any of the floats. Floating the select as well will probably be the easiest thing to do.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference