István
István

Reputation: 5127

Firefox float right behaviour

I have a simple menu (jsFiddle). The float: right css is not working well in FireFox. I think it should work like in Chrome/IE, the red cube should be inline with the menu item.

Somebody knows why is this? Or how to correct it....

Upvotes: 2

Views: 108

Answers (1)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324620

The element you are floating should be defined before the content that you want to float around it. Move the red boxes to be before the text, and it should work fine.

Upvotes: 4

Related Questions