5 * Layout Styling (DIV Positioning)
7 * Define CSS classes to create a table-free, 3-column, 2-column, or single
8 * column layout depending on whether blocks are enabled in the left or right
11 * This layout is based on the Zen Columns layout method.
12 * http://drupal.org/node/201428
14 * Only CSS that affects the layout (positioning) of major elements should be
15 * listed here. Such as:
16 * display, position, float, clear, width, height, min-width, min-height
17 * margin, border, padding, overflow
30 * If you want to make the page a fixed width and centered in the viewport,
31 * this is the standards-compliant way to do that. See also the ie6.css file
32 * for the necessary IE5/IE6quirks hack to center a div.
55 clear: both; /* Clear the logo */
59 * Main (container for everything else)
72 .no-sidebars #content {
73 float: left; /* LTR */
75 margin-left: 0; /* LTR */
76 margin-right: -960px; /* LTR */ /* Negative value of #content's width + left margin. */
77 padding: 0; /* DO NOT CHANGE. Add padding or margin to #content-inner. */
80 .sidebar-first #content {
82 margin-left: 200px; /* LTR */ /* The width of #sidebar-first. */
83 margin-right: -960px; /* LTR */ /* Negative value of #content's width + left margin. */
86 .sidebar-second #content {
88 margin-left: 0; /* LTR */
89 margin-right: -760px; /* LTR */ /* Negative value of #content's width + left margin. */
92 .two-sidebars #content {
94 margin-left: 200px; /* LTR */ /* The width of #sidebar-first */
95 margin-right: -760px; /* LTR */ /* Negative value of #content's width + left margin. */
107 float: left; /* LTR */
109 margin-left: 0; /* LTR */
110 margin-right: -100%; /* LTR */ /* Negative value of #navbar's width + left margin. */
111 padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-navbar. */
112 height: 2.3em; /* The navbar can have any arbritrary height. We picked one
113 that is the line-height plus 1em: 1.3 + 1 = 2.3
114 Set this to the same value as the margin-top below. */
117 .with-navbar #content,
118 .with-navbar #sidebar-first,
119 .with-navbar #sidebar-second {
120 margin-top: 2.3em; /* Set this to the same value as the navbar height above. */
126 #navbar ul /* Primary and secondary links */ {
129 text-align: left; /* LTR */
132 #navbar li /* A simple method to get navbar links to appear in one line. */ {
133 float: left; /* LTR */
134 padding: 0 10px 0 0; /* LTR */
141 float: left; /* LTR */
143 margin-left: 0; /* LTR */
144 margin-right: -200px; /* LTR */ /* Negative value of #sidebar-first's width + left margin. */
145 padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-first-inner. */
148 #sidebar-first-inner {
149 margin: 0 20px 0 0; /* LTR */
157 float: left; /* LTR */
159 margin-left: 760px; /* LTR */ /* Width of content + sidebar-first. */
160 margin-right: -960px; /* LTR */ /* Negative value of #sidebar-second's width + left margin. */
161 padding: 0; /* DO NOT CHANGE. Add padding or margin to #sidebar-second-inner. */
164 #sidebar-second-inner {
165 margin: 0 0 0 20px; /* LTR */
181 #closure-blocks /* See also the #page-wrapper declaration above that this div shares. */ {
185 * Prevent overflowing content
195 word-wrap: break-word; /* A very nice CSS3 property */
199 overflow: hidden; /* May need to be removed if using a dynamic drop-down menu */
203 * If a div.clear-block doesn't have any content after it and its bottom edge
204 * touches the bottom of the viewport, Firefox and Safari will mistakenly
205 * place several pixels worth of space between the bottom of the div and the
206 * bottom of the viewport. Uncomment this CSS property to fix this.
207 * Note: with some over-large content, this property might cause scrollbars
208 * to appear on the #page-wrapper div.