Forum Moderators: not2easy
There is no special padding on the <div>. In ie the first line of text lines up near to the top left corner of the div.
In netscape and mozilla there is quite a large gap between the top of the <div> and the first line of text, which is disrupting my layout.
Does anyone know why this is happening, and what I can do to stop it?
Here is the code that I've been using
<div style="overflow: hidden; position: absolute; left: 7px; top: 510px; background-color: #ff0066; width: 686px; height: 20px; text-align: center;">
<p>This text fits within the box in ie, but in netscape it vanishes</p>
</div>
This is the CSS
p {font-size: 10pt; color: #ffffff; font-family: sans-serif; font-weight: 200; padding: 0;}
Thanks
Try playing with the div's padding (which is 'inside spacing') and the paragraph's margin (which is 'outside spacing') to get the gap just right.
Also:
added
#2 sorted it out for me.