Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

CSS image float left

more options

This is mad crazy. I'm trying to float 4 images left in a div. In every browser, IE, Chrome, Opera, and Safari they line up. In Firefox however the first 2 line up but 3 and 4 step down like a step ladder. Yup I could create 4 float left div's to contain each pic but that seems mad crazy just to fix an issue that is only in Firefox. Am I missing something?

This is mad crazy. I'm trying to float 4 images left in a div. In every browser, IE, Chrome, Opera, and Safari they line up. In Firefox however the first 2 line up but 3 and 4 step down like a step ladder. Yup I could create 4 float left div's to contain each pic but that seems mad crazy just to fix an issue that is only in Firefox. Am I missing something?

All Replies (2)

more options

Am I missing something?

url ?

Browsers don't have to render the same, if you can take the guess work out by putting the four pictures into one container they might work out better until you try it on a mobile device with a small screen.

more options

The 4 images where in one container and rendered properly in everything except Firefox. It's strange because Firefox is usually cool with CSS.