English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Using css and html, I would like to be able to create a column of images (all of same width but different heights), then create another column to its right with more images, then another, etc.

In my attempts to do this, I have repeatedly run into the problem of not being able to stack images on top of each other. Restraining the width of a div does not result in stacked images, but just seems to break the div.

2006-06-14 12:30:31 · 3 answers · asked by Chris Edgemon 1 in Computers & Internet Programming & Design

3 answers

This should work for you… you have to set the width of each

and make each float. Also your last
column you must "clear" the float.














2006-06-14 12:55:39 · answer #1 · answered by da_dreama2003 1 · 0 0

do the same thing that you are doing but instead of using the div tags to stack them, place a br tag between the last image of the top row and the first image of the bottom row. That should allow you to stack your images

2006-06-14 12:46:28 · answer #2 · answered by Jon 5 · 0 0

the code below will make the images flow accross the screen and wrap to the next line when they reach the right side. try styling this with float:left




  • ME!


  • ME!


  • ME!


  • ME!


  • ME!


  • ME!


  • ME!


  • ME!


  • ME!



get a throw-away email address and join this http://www.css-discuss.org/

here are their examples on their wiki pages

http://css-discuss.incutio.com/

2006-06-17 05:00:23 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers