View Full Version : how to set css border??

05-06-2009, 04:38 PM
the border will have a distance with the images
the distance will be around 2-5px

how to do that...

http://img152.imageshack.us/img152/8681/picture1llu.png (http://img152.imageshack.us/my.php?image=picture1llu.png)


05-06-2009, 05:26 PM
1. Set padding with CSS on the images. You can set padding for all four sides different by using the padding shorthand like so:
padding: 2px 3px 3px 6px;
the values are top, right, bottom, left, respectively.
2. For the borders use CSS as well. ie: border-left: 1px solid #ccc;