Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Firefox clear:both issue

Featured Replies

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

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*/
}

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.