radar Posted August 23, 2011 Share Posted August 23, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.