{{indexmenu_n>60}} ====== 2 Cols, fixed width - V2 ====== **2 Columns, fixed width, variable height, horizontal centers - Version 02** **Overall width:** 940px (**links:** 210px - **rechts:** 729px) **Autor:** K.Heermann (flip-flop) http://planmatrix.de //2010/01/07 // \\ **CMS-Version:** >= V1.2.8 \\ **Version:** V1.0 //07.01.2010// \\ **Update:** -- \\ Basierend auf: [[http://www.brunildo.org/test/twocols.html|2 columns layout (fixed widths)]] (by Big John's Piefecta/Bruno Fassino) ===== Requirement: ===== * Content is to be located in the source text as the first * Any column may be longest. * Each column can be filled with a full field background * Header is to stand at the top margin of the Viewport * The page should be displayed horizontally centered. All the columns are floated. * Left and Main should stand side by side visually * CSS code should be conformal! We have chosen a fixed width of 990px, to display the page well on 1024px screens. {{:deutsch:templates:big-john-piefecta:fixed_2_cols_layout_brunildo_fe_1.gif?600|fixed 2 cols layout by Bruno Fassino}} ~~UP~~ ===== Page layout ===== {{:deutsch:templates:fixed_3_cols_layout_big_john_be2_1.gif|}} ~~UP~~ ===== Template ===== {{:deutsch:templates:big-john-piefecta:fixed_2_cols_layout_brunildo_be_1.gif|}} ~~UP~~ ==== head: ==== **--> Set this code snipped in the
//(HTML Kopf:)// of the template:**
\\
==== main: ====
**--> Set this code snipped in the main-area //(Haupt:)// of the template:**
{CONTENT}
{LEFT}
Fixed 2 cols layout
{HEADER}
{FOOTER}
\\
===== CSS =====
{{ :deutsch:templates:big-john-piefecta:2-cols-fixed-width-variable-height-v2_s.gif|}}
{{:deutsch:templates:big-john-piefecta:2-cols-fixed-width-variable-height-v2.gif| }}
==== Template: ====
**File:** template/inc_css/fixed_2_cols_layout_brunildo.css
Width 940px (210px - 730px)
/***********************************************
* Fixed 2 cols layout
* http://www.brunildo.org/test/twocols.html
* Patched version by KH (flip-flop) 06.01.2010
* Width 940px (210px - 730px)
************************************************/
body {
margin: 10px 0;
padding: 0;
color: #000;
background-color: #fff;
font-family: verdana, Georgia, serif;
font-size: 80%;
text-align: center;
}
.clear {
clear: both;
}
.alignright {
text-align: right;
}
.wide {
background-color: #ffc;
}
.top {
border-bottom: 1px solid #000;
}
.bottom {
border-top: 1px solid #000;
padding-bottom: 1px;
}
.testfloat {
width: 50px;
border: 2px solid #f90;
background-color: #ffd;
font-size: .8em;
}
.to-right {
float: right;
}
.to-left {
float: left;
}
.wrapper {
margin: 0 auto;
width: 942px; /* 752px; */
w\idth: 940px; /* 750px; /* C + L + 1 */
text-align: left;
background-color: #cce; /* L */
border: 1px solid #000;
/* overflow: hidden; /* if you donĀ“t use the border */
}
.outer1 {
margin-left: 210px; /* 200px; /* L */
background-color: #e5e5e5; /* C */
border-left: 1px solid #000;
}
.outer0 {
position: relative;
margin-left: -211px; /*-201px; */
}
.center {
float: right;
width: 729px; /* 549px; /* C */
}
.left {
float: left;
width: 210px; /* 200px; /* L */
margin-right: 1px;
}
/* ---- + KH Content first (Header pos absolute */
.top {
height: 70px; /* +KH Head height */
width: 940px; /* 760px; */
position: absolute; /* +KH */
overflow: hidden; /* +KH */
top: 0; /* +KH */
left: 0; /* +KH */
background-color: #ffc;
}
.intop {
padding: 5px;
}
.bottom {
height: 40px; /* KH Footer height */
background-color: #ecf; /* +KH */
}
.inbottom {
padding: 5px;
}
.outer1, .outer2 {
position: relative;
margin-top: 70px; /* +KH (place holder header) */
}
.wrapper {
position: relative; /* +KH (content first) */
}
.incenter {
padding: 10px 10px 10px 10px;
}
/* ------------------------ */
/* previene allargamento floats in IE/Mac \*//*/
* html .inleft, * html .incenter {
width: 100%;
overflow: hidden;
}
/**/
/*
.outer0 {
word-wrap: break-word;
}
*/
\\
==== Navigation (optional) ====
**File:** template/inc_css/nav_list_ul.css
{{:deutsch:templates:big-john-piefecta:nav_list_ul_article.zip|NAV_LIST_UL + Article (>=r387)}}
Have a look too: [[english:navigation:nav_list_ul_parameters]].