[thelist] CSS question: remove space under heading tags?

Darrell King darrell at webctr.com
Fri Apr 27 08:41:11 CDT 2001


On Fri, 27 Apr 2001, Charles Roper wrote:

:
:Anyone else know of any other bugs/hacks/issues and/or any websites
:regarding space around elements that are worth discussing?
:


Fun stuff.  HTML form elements are interpreted by IE5.x under Windows as
having a visible newline after the closing tag.  This can be a problem in
graphics-intensive designs (e.g. sliced graphics) with integrated forms,
especially when integrating designs from graphic artists who don't allow
for the issue.

The CSS margin: 0 and padding: 0 seem to work OK for removing this
newline, but trials with Win NN4.5 and Linux NN 4.7 show the layout spread
out.  NN just doesn't seem to like margin or padding...I've had several
issues related to them.

Opera 5 under Windows and Linux seems to render the form element without
visible margins by default.  I haven't gotten to testing it with the iMac
yet, so there may be more to consider.


I've also had problems with margin and padding not being interpreted
correctly by NN6 and Opera 5 under Windows.  Assigning the padding to a
table cell fails to provide the requested spacing in the final display,
and nesting a div with a margin assigned doesn't seem to keep the content
away from the parent td's inner border, either.  I was surprised at this,
as I thought these two browsers would implement such a basic feature...I
must be doing something wrong with that one...



-- 
Darrell G. King
darrell at webctr.com





More information about the thelist mailing list