Click to See Complete Forum and Search --> : white space in divs with img


cul8er23
09-08-2003, 09:30 AM
Hi all,
Does anyone know how to get rid of margins underneath pics in DIV? It's ok in nav (without css-attribs)
---------------------------------------------------------------
<html>
<head>
<title></title>
<meta name="author" content="peter">
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">

<div style="border:2px solid #6699cc; position:absolute; top:50px; left:10px; z-index:0 width:825px; height:75px; margin:0px; padding:0px">
<img src="pic.jpg" width="825" height="75" border="0" style="margin:0px; padding:0px">
</div>
---------------------------------------------------------------

Thanks in advance


</body>
</html>

Fang
09-08-2003, 12:39 PM
Add display: block; to the img style.
Look here (http://devedge.netscape.com/viewsource/2002/img-table/) for an explanation

cul8er23
09-09-2003, 02:45 AM
Thanks man!
;)