I have moved the navbar more central (not pixel perfect yet), but when I try to position the logo above and centre to it, the main image/slider box goes with it. I tried to add padding or margin to #main-nav (also clear:both) so the main box sits below the Navbar,but it seems the image/slider box will only move in relation to the logo.
Could anyone give me an idea on how to achieve this?
Firstly, to center the menu, remove the left margin on the container and add this:
#main-nav ul {text-align: center; overflow:hidden;}
#main-nav li {display: inline-block}
Then remove float: left; from the LIs.
You could then just get rid of the header div altogether and place the log as a background image on the UL (by giving the UL a large top padding and centering the logo in the background):
ul {background: url(images/go9creative-logo.jpg) no-repeat 50% top;}
However, it’s not a good idea to have the site title served as an image only (especially a background image) as it’s invisible to blind users including Google. So I would put the header div above the navigation and enter the actual logo text, and then you can replace that text with the image if you want, similar to the way it’d done here:
Having some trouble getting the navbar items to spread the whole width of the page. I’d like to have the portfolio button and blog button much closer to the sides. Have been using padding-right under main-nav li but if I go over 140px it screws up as if there is no more room.
That looks great Ralph. Just have an issue with the portfolio link no longer working. Had the same problem earlier when I tried to float the navbar left and use padding-right. Not sure why that is happening.
Also, is there a way to adjust the about and contact buttons if I need to?
Thanks again for your help Ralph.
Is there a good place to read up on setting up these navbars and how the code here works?