css - Layout 3 image links in a row HTML -

hi, i'm making website , need have image links laid out in image above. grey rectangles placeholders images be, same size (275 x 186) , need margin in between them all. need able add in more 6 images.
i can't seem them line properly. appreciated.
one way use "float" property of css. here how approach problem.
- create div has width of "275px + border-size" x 3
- within div add images size 275 x 186 plus borders
- assign css property "float:left" each image.
<
style> div.wrapper{ width: ("275 + border-size" x 3)px; } div.image{ background-image: url(..path img); float: left } </style> <div class="wrapper"> <div class="image"></div> <div class="image"></div> <div class="image"></div> <div class="image"></div> ... add imgs here <div style="clear: both"></div> //need 1 here make wrapper extend </div>
Comments
Post a Comment