Jamesy
12-11-2004, 08:52 AM
Hi,
I am attempting to get a padded border around my images. I currently have a div which wraps around the image, with the necessary border and padding. However - this padding is only kept on the top, left, and bottom edges. On the right hand side, the div extends all the way to the edge of its container?
Website (http://nutternet.com/blog)
The code in question:
.image {
border: 1px solid #CCCCCC;
margin: 0px 0px 0px 5px;
padding: 5px;
}
------------------------------------
<div class="image"><img src="hello kitty christmas.JPG"></div>
If you need to view any more code, just view the source of my webpage - as it is currently 'under construction' the CSS hasn't been moved to a seperate style sheet file.
Thanks for your time,
James.
I am attempting to get a padded border around my images. I currently have a div which wraps around the image, with the necessary border and padding. However - this padding is only kept on the top, left, and bottom edges. On the right hand side, the div extends all the way to the edge of its container?
Website (http://nutternet.com/blog)
The code in question:
.image {
border: 1px solid #CCCCCC;
margin: 0px 0px 0px 5px;
padding: 5px;
}
------------------------------------
<div class="image"><img src="hello kitty christmas.JPG"></div>
If you need to view any more code, just view the source of my webpage - as it is currently 'under construction' the CSS hasn't been moved to a seperate style sheet file.
Thanks for your time,
James.