Thread: CSS Positioning

View Single Post

  #10 (permalink)  

Old 02-19-2006, 10:28 PM

Talking Re: CSS Positioning

Quote:
Originally Posted by Pat
Try adding a margin:0px; to the images.
and you might have to add, display:block; to get the padding / margin's to work.
Code:
#pos1 img {
float:left;
display:block;
padding:0px;
margin:0px;
height:300px;
width:190px;
}
this one worked :-) thanks!!!

Code:
<html>
<style type="text/css">
<!--

#pos1 {
float:left;
display:block;
height:300px;
width:190px;
margin:0px;
padding: 0px;
}

#pos2 {
float:left;
display:block;
height:300px;
width:190px;
margin:0px;
padding: 0px;
}

#container1 {
padding:0;
}

-->
</style>
<body>
<div id="container1">
<div id="pos1"><img src="part1.jpg" alt="" /></div>
<div id="pos2"><img src="part2.jpg" alt="" /></div>
</body>
</html>
[ reply ]
Noob

Noob is offline registered.

Join Date: Feb 2006

Posts: 4