html - css percentage width and height on header -
i want have fluid header used percentage.
prerequisite:
1) call "basic" div containing essential link/img. take 15% in total width , resize depends on browser size.
2) rest call "nav" div. link , added on time. "nav" take left on width 85% (100%width - 15% basic)
3) "nav" link increases amount, push next line.
4) better off supported in i.e. 7 , above?
5) best not use float
tried solution:
1) putting html comment line in-between div because html space mess alignment.
2) putting margin 0 , padding 0 check if reason.
question: how have percentage header "basic" div take 15% , "nav" div take rest of 85% , when "nav" div's link overflow push next line?
i have made jsfiddle
following.
you float div class="basic"
float:left
, div class="nav"
have margin-left:15%
. also, need remove width:85% div class nav.
might not simple fix without float on div class="basic"
hope helps.
Comments
Post a Comment