View Full Version : NEED HELP with a spacing issue - minor!
literatestylish
02-22-2010, 06:17 AM
Hello everyone. You can see the board that I administrate here (www.buffalorange.com) ... If you look at the Red navbar, you will see that I placed the login form there. But you will also see that the login form is quite high on the navbar. My question is, how can I lower the login images and login form so it's in the middle of the navbar, rather than at the very top?
Lynne
02-22-2010, 10:16 PM
Try adding this style to the form:
xxxx {position:absolute;right:120px;top:2px;}
Then play with the image placement. You may have to be a bit familiar with css to do it this way.
literatestylish
02-23-2010, 03:25 PM
Try adding this style to the form:
xxxx {position:absolute;right:120px;top:2px;}
Then play with the image placement. You may have to be a bit familiar with css to do it this way.
Thank you for the response Lynn! You're right, i'm not great with CSS. Could you tell me where to put that line of code? Here is the script for the login I have:
<form action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">
<fieldset id="logindetails" class="logindetails">
<div>
<div>
<style type="text/css">
.toplinks form img {
position:relative;
top: 1px;
}
</style>
<img src="./images/icons/username.png" alt="Username" />
<input id="navbar_username" class="bginput" type="text" onblur="if (this.value == '') this.value = 'Username';" onfocus="if (this.value == 'Username') this.value = '';" value="Username" tabindex="101" accesskey="u" size="10" name="vb_login_username" style="font-size: 10px;"/>
<img src="./images/icons/password.png" alt="Password" />
<input id="navbar_password" class="bginput" type="password" onblur="if (this.value == '') this.value = '';" onfocus="if (this.value == 'Password') this.value = '';" value="Password" tabindex="102" accesskey="u" size="10" name="vb_login_password" style="font-size: 10px;/>
<label for="cb_cookieuser_navbar">
<input id="cb_cookieuser_navbar" type="checkbox" accesskey="c" tabindex="103" value="1" name="cookieuser"/>
</label>
<input type="submit" class="loginbutton" value="Login" tabindex="104" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
</div>
</div>
</fieldset>
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
Thanks again!
Lynne
02-23-2010, 08:26 PM
I said add it to the form:
<form action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})" style="position:absolute;right:120px;top:2px;">
literatestylish
02-25-2010, 04:51 AM
I said add it to the form:
<form action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})" style="position:absolute;right:120px;top:2px;">
Thank you Lynne!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.