|
Posted by Els on 01/24/45 11:50
Stefan Mueller wrote:
> Opera and Mozilla draw the border of the cells of the table just after the
> picture. With Internet Explorer I do always have a small space.
> If you select the image with the mouse you'll see that there's somehow a
> small space on the right and bottom side of an image in Internet Explorer.
[snip layout table]
> Does anybody know how to get rid of this annoying space?
Add some CSS:
<img src="mypic.gif" alt="" style="display:block;">
Images are inline content, just like text. The space below the image
is the same space below text, to make room for descenders of letters
like g,j,p,q,y.
Above is inline CSS, but of course it's better to set that style in a
styleblock, or even better, in your stylesheet. By the fact that
you're using 1997 HTML like border="1" and align="center" as well as
tables for layout, I'm guessing you're not using CSS yet, so - quick
solution is inline CSS as per the example.
--
Els http://locusmeus.com/
[Back to original message]
|