I'll assume that you still want a border between pictures, but you don't want a "double border". I also could not see your markup, so I will make the assumption that you are working with only IMG tags.. move my code to the appropriate tag and it should work for you.
Lets say you had this mark up:
Code:
<div class="images"><img src="img.jpg"><img src="img.jpg"><img src="img.jpg"><img src="img.jpg"></div>
You could use this CSS:
Code:
.images img{border:1px dashed #000;}
.images img+img{border-left:none}
This essentially "collapses" the adjacent borders into each other. Well not really, but that's what the effect looks like.
Of course IE<7 is going to be a problem. If you need old IE support, you will have to do it this way:
Code:
<div class="images"><img src="img.jpg" class="first-img"><img src="img.jpg"><img src="img.jpg"><img src="img.jpg"></div>
Code:
.images img{border:1px dashed #000;border-left:none}
.images .first-img{border:1px dashed #000;}
Hope that helps
Bookmarks