You can see that my idea is to extend the navigation bar infinitely to the left and right, while still keeping the rest of the page in the center. I have used <hr> tags to style the navbar. I don’t know if I came up with this, but I’ve used it successfully on other designs before http://www.marigoldfairtradeclothing.com, but the difference here is that I’d like those <hr> tags to extended past the fixed layout.
You can see that page is not fixed/centered. This probably has to do with the fact that everything is in a <div> wrap.
My best guess is I’ll have to use small 1×1 pixel graphics in the nav bar to get it to extend. I would also have to place the nav bar and the main header <h1> outside of the wrap with absolute positioning/z-indexing.
Bring on the feedback please!
Please forgive me, I’m a little rusty since it’s been 3 months off the CSS wagon.
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
first iframes and now hr’s within ULs… I think the sky is falling!
Ok stop. thats a dirty dirty nasty way of doing it lol
Firstly remove your hrs, and add a border-top to your UL box (which you should also set a fixed height and whatever width you are using) – then take 1px vertical slice of the background you are using and repeat it x down your UL.
you could just take a slice of the background idea and repeat it forgetting about the boarder…
Thanks for the insight. My thought process was geared towards using a fluid layout, when you zoom in with an <hr> tag as a graphical line replacement the <hr> tag doesn’t blur or get distorted as an image would obviously. The <hr> also doesn’t get dropped when graphics are disabled. Yes, semantics, but would placing the <hr> tags outside the <ul> be so wrong? It’s good to know your perspective, and I’ll try your method out.
Any more insight on the kind of layout that would efficiently work as I’ve mocked up? Thanks peeps. :)
well if you have an image that is detailed or a gradient then yea it would get blured, but if you use an image that is physically pixel coloured they would be no noticeable change – especially if you use web safe colours.
HR’s should be left for dividing or splitting up stuff, you should never use them for site stucture. Plus technically you are using them inside a UL without wrapping them in a LI, which is a little bit naughty. :)