css - Using em for navigation sidebar - what unit to use for remaining body container? -
css - Using em for navigation sidebar - what unit to use for remaining body container? -
i have webpage sidebar has navigation options site. sidebar width of 6em (right: 0px, height: 100%, position: fixed).
i want rest of content utilize of remainder of page (100% of total width, minus 7em).
right now, i'm using percent on main content - there smarter/better way?
thanks
sure, maintain 100% width on remaining page , add together
padding-left: 7em;
(your remaining page should placed within containing div)
css css3
Comments
Post a Comment