I have a basic two-line CSS layout, CSS looks like
#sidebar { width:100px; } #main { margin-left:100px; }
And some html example
<div id="content"> <div id="sidebar">some sidebar content</div> <div id="main">some main content</div> </div>
This works, but it seems repetitive and error prone that the width of the sidebar should correspond to the main value on the left. Is there a better way to do this?
source share