I do not know how to best express my title, so I will explain here. I have an HTML / CSS page with 3 div.
The first, div.presentation , does not have a floating rule. I want to make the menu on the right.
So, I have two more divs, div.login and div.categories . They both have float: right; and clear: both; .
I want something like this:
-------------------------------------- ------------------ |div.presentation | |div.login | | | | | | | | | | | | | | | ------------------ | | | | ------------------ | | |div.categories | | | | | | | | | | | | | -------------------------------------- ------------------
But div.login and div.categories are apart from each other. Floating rules worked fine when div.categories did not exist.
I have what I want when I put <div style="height:100px"></div> between div.login and div.categories , but I'm sure we can do better. This is also based on luck.
Those are 3 divs display:inline-block .
Any idea? Many thanks.
EDIT http://jsfiddle.net/7nJp9/1/
source share