Skip to Content

Stylegala Forums » Forums list » Problem solving

img tag adding a 5px margin-bottom?

img tag adding a 5px margin-bottom?

post new topic Post new topic    Reply to topic Reply to topic

Author Message
Lost_User

  • Joined: 22 Jun 2006
  • Posts: 0
  • Status: Offline
Reply with quote Post Posted: Thu Feb 09, 2006 03:48
Could someone tell me why there is a 5px "margin" (although I realize it's not the margin, I don't know what else to call it) at the bottom of the pic? I searched the fock out of this and came up with nothing.

http://adamkosecki.com/trash/test.htm

Thanks!

View user's profile Send private message
 
Sponsor
 
Lost_User

  • Joined: 22 Jun 2006
  • Posts: 0
  • Status: Offline
Reply with quote Post Posted: Thu Feb 09, 2006 04:34
a workout in LA gym

img {display:block;}




XHTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>   
<title>AutoMate User Resource Center</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
* {margin:0;padding:0;}
#box
{
   border: 1px solid #FF0000;
   width: 400px;
   margin: 100px;         
}
#box img
{
   border: 1px solid #3300FF;
   display:block;
}
/*]]>*/-->
</style>
</head>

<body>
   <div id="box">
      <img src="http://adamkosecki.com/trash/norris.gif" alt="Roundhouse" />
   </div>
</body>
</html>


http://www.howtocreate.co.uk/tutorials/index.php?tut=1&part=0#incorporate

View user's profile Send private message
 
Lost_User

  • Joined: 22 Jun 2006
  • Posts: 0
  • Status: Offline
Reply with quote Post Posted: Thu Feb 09, 2006 20:43
Thank you!

View user's profile Send private message
 

Page 1 of 1

post new topic Post new topic    Reply to topic Reply to topic

Display posts from previous:   

Powered by phpBB. © 2001, 2006 phpBB Group & Logo Design