I'm trying to place my submit button to the right of my form. I've floated, I've tweaked, I've hacked, yet I cannot get this going.
The only thing that works is placing my submit button in it's own form, which makes it worthless since it has no data to submit at that point.
I would include my site files, but they're just going to return tons of php errors. Here is the code though:
HTML
CSSCode:<div id="useravatar"> </div> <div id="userctrl"> <form class="login" method="post"> <span class="logtag">U/N:</span><input type="text" name="user" class="login" title="username" value="username"><br> <span class="logtag">P/W:</span><input type="password" name="pass" title="password" value="password" class="login"> <input name="submit" type="submit" value="Login" class="loginbtn"> </form> <center> <h1 class="logintext">You must <b>Login</b> or <b>Register</b> to access the UserCP.<br>Need to reset <b>Username</b> or <b>Password</b>?</h1> </center> </div>
The following code produces this:Code:#useravatar { width: 94px; height: 94px; background: url('images/av_back.gif') no-repeat; float: left; margin: 9px 0px 0px 9px; padding: 2px 0px 0px 2px; } #userctrl { float: right; margin: 0px; padding: 0px 5px 0px 0px; } a.welcome { color: #fff; } a.userbutton { text-align: center; text-decoration: none; color: #fff; background-color: #757575; border-radius: 5px; -moz-border-radius: 5px; border: 2px solid #575757; float: right; padding: 3px 7px 3px 7px; margin: 0px 5px 0px 0px; } a.userbutton:hover { background-color: #575757; color: #d9aa7c; } h1.pminfo, a.pminfo { text-align: right; font-size: 11px; font-weight: normal; color: #282421; margin: 7px 5px 15px 0px; } form.usertools { margin: 0px 5px 5px 0px; } form.login { margin: 13px 0 0 0; } input.login { width: 160px; margin: 5px 0 0 0; padding: 0 5px 0 5px; font-family: Arial, Verdana, Tahoma, sans-serif; font-size: 12px; } input.login:hover { background-color: #f6f1ed; border: 1px solid #abadb3; padding: 1px 6px 1px 6px; } input.loginbtn { height: 45px; margin: 0px 10px 0 15px; } span.logtag { margin: 7px 15px 0 0; display: block; width: 15px; color: #66625f; float: left; } h1.logintext { font-size: 10px; font-weight: normal; color: #66625f; margin: 10px 0 0 0; }
As you can see, it looks like the submit button just gets forced down by the text area. I don't know how to work around this.



Reply With Quote






Bookmarks