![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a _very_ rough copy of a small image gallery that I am working on at this address: http://www.andrews-corner.org/temp/screenshots.html There is an odd cascading effect that has me completely baffled. The images are supposed to adjust to the width of the page but they line up neatly 3, 2, 1 and aligned right. |
#3
| |||
| |||
|
|
On 2008-07-01, andrew <andrew (AT) ilium (DOT) invalid> wrote: I have a _very_ rough copy of a small image gallery that I am working on at this address: http://www.andrews-corner.org/temp/screenshots.html There is an odd cascading effect that has me completely baffled. The images are supposed to adjust to the width of the page but they line up neatly 3, 2, 1 and aligned right. It's because your floats are slightly different heights. A left float tries to go left, but doesn't make it all the way if it "snags" on a left float that's already there. Like sideways Tetris. |
|
Make them all 200x138 (or all the same at any rate) and you should be OK. |
|
To be safe you could set height: 1.2em explicitly on the <p>s underneath them. Or set a height on the whole li but that's rather more drastic. |
![]() |
| Thread Tools | |
| Display Modes | |
| |