Download & Extend

#content overflows parent container in fixed width layout with no sidebars

Project:Zen
Version:7.x-5.0
Component:layout.css
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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;
}

Change records for this issue

Comments

#1

Status:active» fixed

Good catch!

Fixed http://drupalcode.org/project/zen.git/commitdiff/cf30ba3

#2

Title:#content in fixed width layout, with no sidebars, overflows parent container» #content overflows parent container in fixed width layout with no sidebars

Better title

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here