css - Layout 3 image links in a row HTML -


enter image description here

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.

  1. create div has width of "275px + border-size" x 3
  2. within div add images size 275 x 186 plus borders
  3. 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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -