I do not see what I am doing wrong here. I work with the widths and margins of three columns, and I want to expand the right sidebar into the white space on the left.
But when I increase the width of # sidebar-right above 22%, both sidebars drop below the content. I am missing something related to combined widths and margins.
HTML and CSS are under the image. It is also a responsive structure, if that matters. I need to stay with this CSS and HTML, as this is a WordPress theme, and I don't want to switch to another type of column or column structure.
Update 10/23/12 . I gave up trying to adapt the current CSS and HTML and changed to a CSS window layout model for page templates, because the window model works well, and I can simplify my page templates too.
Any ideas?

HTML:
<body class="three-column"> <div id="page"> <div id="main"> <div id="primary"> <div id="content" role="main"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris a eros eu sem sollicitudin vulputate. Maecenas ac ante libero, quis volutpat diam. Etiam eleifend arcu eu enim tincidunt ornare. Sed imperdiet viverra bibendum. Proin a enim et turpis tempus mattis vitae et ipsum. In et ligula eget tellus malesuada pretium sed ut ipsum. </div> </div> <div id="sidebar-right"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris a eros eu sem sollicitudin vulputate. Maecenas ac ante libero, quis volutpat diam. Etiam eleifend arcu eu enim tincidunt ornare. Sed imperdiet viverra bibendum. Proin a enim et turpis tempus mattis vitae et ipsum. In et ligula eget tellus malesuada pretium sed ut ipsum. </div> <div id="sidebar-left"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris a eros eu sem sollicitudin vulputate. Maecenas ac ante libero, quis volutpat diam. Etiam eleifend arcu eu enim tincidunt ornare. Sed imperdiet viverra bibendum. Proin a enim et turpis tempus mattis vitae et ipsum. In et ligula eget tellus malesuada pretium sed ut ipsum. </div> </div> </div> (some closing divs omitted for clarity).
CSS
#page { margin: 1em auto; max-width: 1075px; } #main #secondary { float: none; margin: 0 7.6%; width: auto; } .three-column #page { max-width: 1075px; } .three-column #primary { float: left; margin: 0 -26.4% 0 0; width: 100%; } .three-column #content { margin: 0 34% 0 20%; width: 44%; border:1px solid #c2c2c2; padding:10px; } .three-column #sidebar-right { float: right; margin-right: 1.5%; width: 22%; border:1px solid #c2c2c2; padding:10px; } .three-column #sidebar-left{ position:relative; float: left; width: 15%; margin-left: -72%; border:1px solid #c2c2c2; padding:10px; }
source share