-
I'm sure you've all been seeing Netscape 4's weird behaviour with line-heights and images, the images overlapping the text etc... All this because of the line-height attribute.
So, how do you cancel all styles in a SPAN tag around an image ?
Is there something like style="none" ?
-
shin-ma...
by default a span tag has no attributes. It is completely empty of any value.
If you are talking about a DIV tag (which is a block level element) then you just have to determine which attribute you want to cancel out, then style that particular element.
For example, by default the <P> tag (and the DIV) both have an extra line-space below them (or margin)
simply do this:
p { margin-bottom: 0px; }
Note that this may not work in Netscape though
:lol:
-
Yup i knew about SPAN thanks :)
Just thought about a kind of <span style=" ... "><img src="whatever.jpg"></span>
And anyway i finally made it with a TABLE :p