Closed (fixed)
Project:
Zen
Version:
7.x-5.0
Component:
layout.css
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
8 May 2012 at 17:46 UTC
Updated:
31 May 2025 at 14:14 UTC
Width of #content with no sidebars overflows its parent container (#main). This is due to both #main and #content having their widths set to the same value ($zen-grid-width) while not accounting for #content having margins based on $zen-gutter-width.
There seems to be no need to set the width of #content when no sidebars are displayed.
Fix is to remove the following code from fixed-width.sccs:
/*
* The layout when there are no sidebars.
*/
#content {
width: $zen-grid-width;
}
Comments
Comment #1
johnalbinGood catch!
Fixed http://drupalcode.org/project/zen.git/commitdiff/cf30ba3
Comment #2
johnalbinBetter title