css - boxes adding up to 100% of the browser -


i want have 2 boxes right next each other, 1 fixed width, , width change based on size of browser. box has overflow:auto, , i'm trying first box act side bar follow down page. of course can't seem achieve this, , have come here hoping give me examples, or point me in right direction.

thanks!

to achieve layout asked try along these lines:

html:

<div>     <div id="col1">left navigation menu</div>     <div id="col2">right content</div> </div> 

css:

#col1 {     position:fixed;     width:400px; }  #col2 {     position:absolute;     left:400px; } 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -