Forum Moderators: phranque
Here is another cross-browser solution that I've come up with.
<style>
p {margin-top:-1em;}
h1{margin-bottom:0em;}
</style>
The above works in NN4. That code should be placed in the page header (<head> </head>) Note- you can leave out the h1 declaration above and put it in the main .css file - I included it here only as the code that NN4 needs to see for the solution.
Then in the external .CSS file, use:
@import url(nons.css);
As the first line (I just used nons.css as a file to indicate NO Netscape. NN4 will ignore this line.
In that file you will have stavs solution:
p {margin-top:0em}
h1{margin-bottom:0em}
This will be read by IE and NN6 and is the correct code.
kapow - size of gap? Try using pixels instead of ems. You might have to play with it a little bit.