I am currently overwhelmed by the vast number of questions available on the topic "two divs next to each other." Since I am trying to create the same thing that I read for hours now and trying every solution that I can use Google. But to no avail. Therefore, I hope the SO user base can help me.
I have 2 divs one with a title (logo), which can be of any size (clients upload their own logo). And one more div with navigation (menu), which was also configured by the client itself. Since clients create content (logo + menu), I cannot set the width element to px or another (as far as I know).
I want to make sure that the title of the div is just as large so that it matches the logo (image) or logo (text). And that navigation fills all other available places on the right.
See this script: http://jsfiddle.net/nSY4P/
Thanks for the help in advance.
<style>
.head-area{width:100%;}
.header{float:left;background:#fe0000;}
.navigation{float:left;background:#feda08;}
.head-area{clear:both;}
</style>
<div class="head-area">
<div class="header">CLIENT LOGO</div>
<div class="navigation">ITEM 1 | ITEM 2 | ITEM 3 | ITEM 4 | ITEM 5</div>
<div class="head-area-clear"></div>
</div>
source
share