Wrappers and #divs are not centering

Events happening in the community are now at Drupal community events on www.drupal.org.
pwndius_pilatus's picture

Hi,
I wanted to create a design with centered header + menu, and under that a main content column on the left and a sidebar on the right.

Tried to center the zones and their belonging regions with a width and margin in the global.css:

      #zone-menu-wrapper {
    background-color: transparent;
    width: 990px;
    margin-left: auto;
    margin-right: auto;
    }
        #region-menu {
            background-color: #000044;
            width: 990px;
            margin-left: auto;
            margin-right: auto;
            }

Normally, everything should be centered, but now its about 15 px more to the right and on the left is a small space.

What did I wrong?

Thank you in advance!

Comments

#zone-menu was missing in global.css

pwndius_pilatus's picture

Oh, got it already. I have a pre-defined global.css file from
"http://www.radarearth.com/content/beginning-drupal-7-theming-omega" and the #zone-menu was missing in the file.

My fault...because the Omega CSS documentation (http://drupal.org/node/1298688) tells us that every Zone-Wrapper has an individual zone.

Omega Framework

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: