2 replies [Last post]
dahliorse
Offline
newbie
Last seen: 15 years 31 weeks ago
Joined: 2006-10-15
Posts: 2
Points: 0

Hello,

Does anonone know how to place a border around an image or several imagaes of different sizes. I seem to get a border that expands beyond the images left and right sides until it reaches the table border that the images are contained in.

If the images (thumbnails) are of the same size, I can use margin and padding to get the border to fit snugly around the image. But if the images are of different sizes then either the border will dissapear behind an image or the border grows beyond the image boundary.

grateful for any help.

Nick Waschezyn
Offline
newbie
Last seen: 15 years 30 weeks ago
Joined: 2006-10-15
Posts: 4
Points: 0

You can add the border to

You can add the border to your images in the stylesheet by adding the border property to the img tag.

See http://scrapsville.com/example.html

Here's the code for the page:

Another Layout

img {border: solid #CC6600 1px;}

dingbat

To add space between the image and the border, adjust the padding in the img tag.

dahliorse
Offline
newbie
Last seen: 15 years 31 weeks ago
Joined: 2006-10-15
Posts: 2
Points: 0

Thank you

Thank you for the tip:)

dahliorse