My div spacing in FireFox - solved
With the release of Wordpress 2.2, I decided to take advantage of the widgets. That meant I either had to upgrade my current theme, find a new widget-ready theme or make my own. I browsed several of the available options at the Wordpress theme viewer and found nothing that jumped out as “yeah - that’s the one”. That left me doing me own.
I started with the Wordpress default and added my header. That was the easy part. After getting in the navigation bar and modifying the main colors in the CSS I was making great progress. Then I reached a roadblock.
I spent hours today trying to figure out why FireFox was inserting a space between two div elements but Internet Explorer would show the page correctly. There were numerous suggestions I found on various pages and forums; all of which I tried. It wasn’t until I found Paul OB’s article “No Margin For Error” that I discovered I wasn’t the only one who has encountered this problem.
Paul’s article discusses in detail the different CSS defaults for IE and FF. I was surprised to know FireFox sets default margins. That default margin is causing my graphics to have a small white gap between them. I tried using the CSS code to reset the global white space. That did get my navigation graphics to move up and sit just below the header graphics - which is where I want them. But, it also caused all my content to be really goofed up.
I opted to live with the gap in Firefox rather than go back and rewrite all of my articles or track down every piece of CSS that governs my text display. I have tried to adjust the margin settings in CSS for the primary elements named in the header section but haven’t had any luck yet. For now, it can stay like it is.  I am still tweaking the layout and may change the way the whole header thing is setup anyhow.




To fix the navbar just add this this.
#navbar ul{margin:0;padding:0}
Ul’s have default top margins in mozilla ( also note that some browsers have default left margin whereas other browsers use default left padding for the bullet space so you need to reset both to be on an even keel).
Thanks, Paul! Dropped in your suggestion and it worked like a charm. You totally rock!
I came across this page in the midst of a headache with this exact problem. Problem solved, and Paul for president!
I have tried all the above, and I still have a 1px padding (margin?) that is creating a 2-pixel-wide whitespace in the middle of two slices that must be seamed… css is at http://averyknowsfitness.com/sitelayout.css
Anybody have a further suggestion?