June 18, 200818 yr Hi, I know that clearing floats can work a little differently in Firefox, but I'm not sure how to fix a problem where I have a number of images in rows, and they display perfectly in IE, and from the second row downwards in Firefox too. But in FF, there is a huge gap between the first and the second row which I can't get rid of. Does anyone have any bright ideas? The page can be viewed here: http://www.inzpire.com/portfolio_new1.php Many thanks for any advice. Vicky
June 19, 200818 yr Hmmm... I'm not sure where that's coming from but I'd suggest a different approach for listing your images using an unordered list... <ul class="imageblock"> <li><img src="image.gif" alt="" /><br />Description</li> <li><img src="image.gif" alt="" /><br />Description</li> <li><img src="image.gif" alt="" /><br />Description</li> <li><img src="image.gif" alt="" /><br />Description</li> <li><img src="image.gif" alt="" /><br />Description</li> <li><img src="image.gif" alt="" /><br />Description</li> </ul> ul.imageblock { float: left; width: 100%; list-style: none; padding: 0; margin:0; } ul.imageblock li { float: left; width: 33%; text-align: center; height: 125px; /*adjust as necessary*/ }
June 19, 200818 yr Yeah it is very weird how some simple things will display so odd like that.. I cannot see in your code why it wouldn't display evenly.. But I do agree with BlueDreamer that an unordered list should maintain a consistent flow, and achieve what you are looking for.
June 19, 200818 yr Author Thanks for your replies BlueDreamer and EvSoul - that worked perfectly. Why didn't I think of using a list sooner...! Many thanks for your perfect code BlueDreamer - it worked a treat. All the best Vicky
Create an account or sign in to comment