Creating Liquid Layouts with Negative Margins

Posted . Visible to the public.

I was recently confronted with the task of creating a two-column liquid layout with a header and footer in which the content needed to come before the sidebar in the source code. I took opportunity to demonstrate an under-used aspect of CSS: negative margins. Negative margins allow us to push the content area away from the sides of the browser, leaving room for the sidebar.

Last edit
Keywords
css, makandra
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2010-12-26 18:21)