Website help

Soldato
Joined
6 Jun 2011
Posts
2,741
Hey guys,

I am creating a website for the first time for university. However I believe I am running into the usual IE and Firefox box model issue. Basically my CSS code is below and it includes a horizontal navigation bar. However for some reason IE makes a small white gap on the right hand side of the bar. Does anybody know why?




Many thanks
Josh
 
Last edited:
I forgot to add that I think it is something to do with this here because it is where I have added padding:


In firefox the nav bar is the same width as the main div.
 
Last edited:
Thanks for the responses. I think it is already solved! It was a box model issue, setting a fixed width has made them both the same width :) One other thing quickly, since changing it my text was not aligned in the middle. So I added in text-align:


However how do align it in the middle vertically?

Many thanks!!
 
Last edited:
Thanks for the help guys, here is the fixed versions now:

Firefox:


Now I might add a border-right between them, in order to seperate them.

Thanks :D
 
Last edited:
Back
Top Bottom