Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In my website header, I have a div called "navigation", which should be on the right and has an automatic width. I also have another div called "icon", which should be on the left and should fill up the remaining width of "header". Please see it here: http://codepen.io/Rixterz/pen/KAdsr[^]

Help!
Posted

1 solution

Add this style in css class :

CSS
display:inline;
float:left;


Add it in both... And you can design as you want...
:) :) :)
 
Share this answer
 
v2
Comments
HardikPatel.SE 31-May-14 10:26am    
Then see this....

http://jsfiddle.net/hardik4now/VL9TE/
[no name] 31-May-14 10:28am    
Please just use my example because yours is completely different.
[no name] 31-May-14 10:24am    
That still doesn't make the first div fill the remaining space. Try the codepen example in the question using display:inline;
float:left; in both.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900