css - Variable content width fixed sidebar width layout -
I searched around forums but could not find the exact answer to the question.
This is currently a fixed width layout, I want to zoom in my blog layout to adjust the content area flexible width, when the browser changes the width.
The main styles that play with me are:
#wrapper {width: 960px; Margin: 0 auto; } # Content {padding: 25px 0; } Section {float: left; Width: 660px; Margin-right: 20px; } To be dynamic in maintaining on one side to sit in window radius (float: left; width: 280px;} Em> section
change your style to
section {float: left; width: 100%; margin-right: -280px;} one side (float: left; width: 280px;}
Comments
Post a Comment