Hiya,
I'm running Drupal 6.x with Zen 1.0. I'm trying to get the User Login block to appear (preferably) in the header area or (less preferably) in the navbar in my fluid layout subtheme. Oh, and new to it all!
I've read a huge amount that seems to advocate just having a separate bar at the top, by hard coding against page.tpl.php - doesn't seem like the right way to do it to me! It's only layout, so I should be able to do that with CSS - right?
So far the changes that I've made to my theme that seem relevant (i.e. not just color statements) are:
h1#site-name, div#site-name /* The name of the website /
{
margin: 0;
font-size: 2em;
/ line-height: 1.3em; /
line-height: 110px; / this is my logo height, which causes the name to be vertically centrally aligned /
}
#navbar-inner
{
background-color: #A8B400;
padding: 0 0 5px 0;
}
#user-login-form {
padding: .65em 0;
margin-top:0px;
width:500px;
font-size: 0.8em;
float: right;
/ display: inline;*/
}
#user-login-form label {
float: left;
margin-left: 10px;
margin-right: 2px;
margin-top: 0px;
font-weight: normal;
}
#user-login-form input {
float: left;
margin-top: 0px;
}
#user-login-form span.form-required {
display: none;
}
#user-login-form div.item-list ul li {
display:none;
}
#user-login-form .form-item {
margin-top: 0px;
}Ideally I'd have the bar at the right hand side. Whenever I try placing the block there, I find that there's an unexpected space above the login bar, which I've failed to identify. I've been attempting to use FireBug to help me, but not found any items with any top margins or padding that I can remove.
I've just tried a custom PHP block to produce my own login form (seems like a hack), which does seem to avoid the layout issue - so I can try and refine that if need be. Ideally I'm trying to keep the site free from PHP changes where possible so that someone else can understand it.
Help/advice/condolences much appreciated!
Colin