Kann es sein, dass es in der Doku zu 2-Columns-Layout mit Sidebar right aligned anstelle von
richtigerweise heißen sollte:Code:/* * |-------------------------------------------------------| * | content | sidebar | * | col 1 | flexible | col 3 | fixed | * | | | * |-------------------------------------------------------| */ .ym-column { display: block; overflow: hidden; padding-left: 250px; /* column width */ width: auto; } .ym-col1 { /* content */ position: relative; float: left; width: 100%; } .ym-col3 { /* sidebar */ position: relative; float: left; width: 250px; /* column width */ margin: 0 0 0 -250px; }
Code:/* * |-------------------------------------------------------| * | content | sidebar | * | col 1 | flexible | col 3 | fixed | * | | | * |-------------------------------------------------------| */ .ym-column { display: block; overflow: hidden; padding-right: 250px; /* column width */ width: auto; } .ym-col1 { /* content */ position: relative; float: left; width: 100%; } .ym-col3 { /* sidebar */ position: relative; float: left; width: 250px; /* column width */ margin: 0 -250px 0 0; }


Zitieren
Lesezeichen