Simple html/css layout? (two column) -
i'm having hard time trying come html/css layout suite following:

where left area static menu. right area dynamic content, generated using call asp.net's renderbody method. may not believe it, have been trying figure out hours. keep getting either right section ending underneath left section taking 100% of width or not displaying @ all, chrome's object inspector saying 0 pixels wide.
i feel complete idiot seems if should easy pie. please help?
there's several ways go this. here's 1 not particularly fancy straight-up way go it:
<body> <div id="menu">menu</div> <div id="content"> content <br /> content <br /> content </div> </body> css:
div { border: 2px solid black; } /* demo purposes */ #menu { float: left; width: 150px; } #content { margin-left: 154px; /* menu width + (2 x menu.border-width) */ } see this jsfiddle working sample.
Comments
Post a Comment