Jump to content

form align left, align right


radar

Recommended Posts

Alright, I'm building a registration form  but I want everything to be on the right side of the containing div that it's in...

 

<div id="container">
<div id="register">
	<h1>Register</h1>
	<form class="right" action = "">
		<ul>
			<li><label for="name" class="desc">Name:   </label><input name="name" type="text" size="30%"></li>
			<li><label for="email" class="desc">Email:   </label><input name="email" type="text" size="30%"></li>
			<li><label for="password" class="desc">Password:   </label><input name="password" type="password" size="30%"></li>
			<li><label for="password2" class="desc">Confirm Password:   </label><input name="password2" type="password" size="30%"></li>
		</ul>
	</form>
</div>
<div id="login">
	<h1>Login</h1>
</div>
</div>

 

I can get both the label and the input to float to the right, but the problem is that when i do it the label is on the right side of the form input unless i put the form input before the label.  anyone have any ideas?

Link to comment
https://forums.phpfreaks.com/topic/245469-form-align-left-align-right/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.