Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align problem (CSS)

Status
Not open for further replies.

ASPVBNerd

Programmer
Nov 23, 2005
83
SE
I have a simple problem but I can't solve it.
The problem is that I want to diplay two textboxes next to each other. The firstname and lastname should be at the same line.
It will not react at <div style="float: left;">

A link so you would understand my problem better.

If i use only this little peace of code the it works.
Code:
<div style="float: left;">  
Förnamn<strong>*</strong>
<input type="text" name="signup_username">
</div> 
<div style="float: left;">
Efternamn<b>*</b>
<input type="password" name="signup_password">
</div>
 
Oh dear. Look at your .content, which your floated elements are in. It is 140px wide. How do you expect your inputs to be side by side if there is no room for that? Remove the width on the .content and watch it work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top