how can I create borders for images?

Discussion in 'CSS' started by shamrock36, Oct 20, 2006.

  1. #1
    Hi there, I'm building this image gallery

    and want to have all the thumbnails in the gallery with black border - without having to go on each of them and define it,
    I've tried creating an ID for the table, but that didn't work, current borders are these that I've made manually, and the 2 blue borders are forced when I want the images to be used as links.... what can be done?

    also If you have some feedback for the design - whether you can see any problems that can occour let me know, thanks!
     
    shamrock36, Oct 20, 2006 IP
  2. missdanni

    missdanni Guest

    Best Answers:
    0
    #2
    Give this a try:

    <style type="text/css">
    <!--
    .image-box {
    	border: 1px solid #000000;
    }
    -->
    </style>
    Code (markup):
    And make your links like this:

    <a href="link.gif"><img src="image.gif" alt="" name="image" width="100" height="100" border="0" class="image-box"></a>
    Code (markup):
    Hope that helps :)
     
    missdanni, Oct 20, 2006 IP