Can you create an image showing exactly where in the header you want the button? You can just scribble on one of these screenshots, showing where you want the button to be. I am unclear on what the correct position for the button is.
Here are two screenshots, IE7 and FF3. Is either correct?
IE7
FF3
I think putting that button outside the header by using a negative margin is a bad thing to do. It also seems to me that a button is probably not a very ‘usable’ solution to return to the home page of the website. Why not a text link in the header, or in the footer?
If you are set on the button hanging off to the left of the forum in the header, then please describe which of the two screenshots is closer to or exactly what you want.
You could use absolute positioning and just put that home button in position:absolute;top:0; left:0;
which would take it out of the content flow.
There has to be a more natural way to layout that header though. What you might use (though more work) is a sub-menu under the header.
Thanks, guys.
Chris,
FF3 is correct.
_ck_ ,
Yes, the sub-menu idea might well be a more elegant solution. I don’t mind some work, but I don’t know how to go about it.
I’ll try your absolute positioning suggestion, but I don’t think I’ll like the look of the home nav button hard top left
Ross, I created a little slice of a navbar up top, and put the link over to the right in it. Here’s how I did it:
style.css:
#navbar {
background: #A9A9A9;
height: 1.5em;
text-align: right;
font-size: 1.2em;
}
header.php:
<div id="navbar">
<a href="http://ashb.proofreadercentral.com/" title="Return to the ASHB website home page">ASHB Home</a>
</div>
Put that in the header right after the end of the login form and right before the end of the header div. That will give you a little slice up top in which to link to the main website. You can change the color, the height of the bar and the font size.
I don’t know why the button is tucked in so close in IE (not FF), but it seems like the negative positioning thing is probably fraught with problems, so I would avoid it.
You could also put your button to return to the main website in this nav bar, but you’d have to make it taller.
Thanks so much – AGAIN – Chris!
I ended up combining some of your previous advice with that you’ve posted above, messed with the CSS to re-position the cramped header items, and am now pretty happy with the look.
See: http://ashb.proofreadercentral.com/bbpress/
User: tester
PW: testing123
Just one little curiousity – and if it’s any sort of hassle, don’t respond, but if you can be bothered, I’d be interested in your take on the following:
When using IE as the browser, the nav link back to the ASHB home page doesn’t activate until your cursor is close to the top header border – usually, hyperlinks activate as soon as your cursor touches any part of the text. Anything that can be done about this?
NB: No such issue with Firefox!
Ross, maybe this will point you in the right direction:
http://www.37signals.com/svn/posts/1048-padded-link-targets-for-better-mousing
If not, I can work on it a little later. Basically, you need to add some padding to the link inside the nav bar.
For me though, the links worked identically on IE7 and FF3. Not sure what your experience was.