I need the content block to be center-aligned, while the menu block has to be “attached” to the left side of content block. So the distance between these blocks should remain constant while risizing of the browser window. Could you tell me how to implement this, please? 🙂
Here some sample pictures of what I’d like to implement:
Browser window is maximized
Browser window was made small
Browser window was made smaller, and scrollbar appeared
Whoops I missed the “constant while risizing” bit, updated example to solve problem.
This what you’re looking for?
http://jsfiddle.net/r8YQc/1/
HTML:
CSS:
P.S.
if you add a min-width of 540px (300px content width + 4 * 10px margins + 100px gutter on left and right for menu and empty space) to the body element, it won’t clip the layout when resized too small.