NAVIGATION
This is an old revision of the document!
2 Spalten, variable Breite rechts, variable Höhe, horizontal gesamt, Mindestbreite,
Spalten eigener Hintergrund - Version 01
Gesamtbreite: Fenstergröße (min. 604px) (links: 210px - rechts: float)
Autor: K.Heermann (flip-flop) http://planmatrix.de 2010/01/07
CMS-Version: >= V1.2.8
Version: V1.0 2010.01.07
Update: –
Basierend auf: 2 columns layout (right fluid) Based on Big John's Piefecta
–> diesen Codeschnipsel in den <head> (<HTML> Kopf:) der Vorlage einstellen:
<!--[if lt IE 8]><style> .outer, .wide, h2, .wrapper, .minwidth { _height: 0; zoom: 1; } /* rimuove complicazione per Gecko 1.7- */ .left { margin-right: 0; } </style><![endif]--> <!--[if lt IE 7]><style> .minwidth { border-left: 604px solid #fff; } .wrapper { margin-left: -604px; position: relative; } </style><![endif]-->
–> diesen Codeschnipsel in den Main-Teil (Haupt:) der Vorlage einstellen:
<div class="minwidth"><div class="wrapper"> <div class="outer"> <div class="center"><div class="incenter"> {CONTENT}{SCROLLBAR1}{SCROLLBAR2} </div></div> <!-- end center div --> <div class="left"><div class="inleft"> <div style="font-size:11px;" class="nav-list-ul"> {NAV_LIST_UL:FPA,0,,act_path,active} </div> {LEFT} </div></div> <!-- end left div --> <br class="clear" /> </div> <!-- end outer div --> <div class="top"><div class="intop"> <h1>2 cols layout left fixed, right fluid</h1> {HEADER} </div></div> <div class="bottom"><div class="inbottom"> {FOOTER} </div></div> </div></div><!-- end minwidth / wrapper div -->
Datei: template/inc_css/2_cols_layout_left_fixed_right_fluid.css
Width 100% (210px - float)
2_cols_layout_left_fixed_right_fluid.css
/*********************************************** * Left ixed right fluid 2 cols layout * http://www.brunildo.org/test/lf100r.html * Patched version by KH (flip-flop) 06.01.2010 * Width 100% (210px - float) ************************************************/ body { margin: 10px; padding: 0; color: #000; background-color: #fff; font-family: verdana, Georgia, serif; font-size: 80%; } .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 { background-color: #cce; border: 1px solid #000; } .outer { margin-left: 210px; /* 200px; /* L */ border-left: 1px solid #000; background-color: #e5e5e5; /* #fcd; right color */ } .center { float: right; width: 100%; margin-left: -1px; } .left { float: left; position: relative; width: 210px; /* 200px; /* L */ margin-left: -211px; /* -201px; /* -L-1 */ margin-right: 2px; } .minwidth { min-width: 604px; } /* ---- + KH Content first (Header pos absolute */ .top { height: 70px; /* +KH Head height */ width: 100%; /* 760px; */ position: absolute; /* +KH */ overflow: hidden; /* +KH */ top: 0; /* +KH */ left: 0; /* +KH */ background-color: #ffc; } .intop { padding: 5px; } .bottom { border-top: 1px solid #000; height: 40px; /* KH Footer height */ background-color: #ecf; /* +KH */ } .inbottom { padding: 5px; } .outer { position: relative; margin-top: 70px; /* +KH (place holder header) */ } .wrapper { position: relative; /* +KH (content first) */ } .incenter { /* +KH */ padding: 10px 0 10px 10px; } /* ------------------------ */ /* previene allargamento floats (hidden) \*//*/ * html .inleft, * html .incenter { width: 100%; overflow: hidden; } * html .center { margin-left: 0; } * html .left { margin-right: 1px; } * html .minwidth { border-left: 604px solid #fff; } * html .wrapper { margin-left: -604px; } /**/ /* .outer { word-wrap: break-word; } */
Datei: template/inc_css/nav_list_ul.css
Siehe auch NAV_LIST_UL (Parameter).
/* ====================================================================== >= V1.30 CSS for an vertical menu <div class="nav-list-ul">{ NAV_LIST_UL:F,0,,act_path,active }</div> Level 0 - 3; 26.03.07 flip-flop (KH) ========================================================================= */ .nav-list-ul { margin: 0; padding: 0; border: 0; text-decoration: none; /* ++ e.g. 11px font and 19px height // z.B. 11px font und 19px hoch */ font: normal normal 11px/19px Verdana, Geneva, Arial, Helvetica, sans-serif; width: 210px; /* ++ Width of Menu Items // Breite der Navigation*/ /* float:left; */ } .nav-list-ul em { font-style: normal; } .nav-list-ul ul { margin: 0; padding: 0; border: 0; list-style-type: none; width: 210px; /* ++ Width of Menu Items // Breite der Navigation */ } .nav-list-ul ul li { position: relative; } /* ==== Styles for Menu Items =================================== */ /* ==== LEVEL X ================================================= */ /* ==== simple link <a> // einfacher Link <a> ==== */ .nav-list-ul ul li a, .nav-list-ul ul li a:link, .nav-list-ul ul li a:visited, .nav-list-ul ul li a:active { display: block; text-decoration: none; text-transform: none; color: #FFFFFF; /* ++ Text color // Textfarbe */ /* ++ background color; url of the image; image adjust e.g. left gap 10px */ /* ++ Hintergrundfarbe; URL der Grafik ; Grafik einrücken z.B. 10px */ background: #81909F url(../../img/article/navi1_norm.gif) 10px 1px no-repeat; /* ++ Text adjust e.g. upper gap and left gap 25px */ /* ++ Text justieren 1px oben und 25px von links */ padding: 1px 0 0 25px; /* ++ bottom line if you want */ /* ++ Untere Linie wenn gewuenscht */ border-bottom: 1px solid #ccc; /* IE6 Bug */ /* ++ Den "white-space" Fehler im IE7 vermeiden */ /* ++ Killing the "white-space" bug in IE7 */ \width: 210px; /* IE5x Opera <= 5 */ widt\h: 185px; /* = (Width of Menu Items) - (padding-right + padding-left) */ } /* ==== Aktiv, wenn ein Sublevel vorhanden ist // active point if there is a sub_level ==== */ .nav-list-ul ul li.sub_ul_true a, .nav-list-ul ul li.sub_ul_true a:link, .nav-list-ul ul li.sub_ul_true a:visited, .nav-list-ul ul li.sub_ul_true a:active { color: White; font-weight: normal; background: #839AAF url(../../img/article/navi1_sub_true.gif) 10px 1px no-repeat; } /* ==== Aktiver Pfad - Linkverfolgung im Baum // active path in tree (link tracing) ==== */ .nav-list-ul ul li.act_path a, .nav-list-ul ul li.act_path a:link, .nav-list-ul ul li.act_path a:visited, .nav-list-ul ul li.act_path a:active { color: White; font-weight: bold; background: #63819F url(../../img/article/navi1_act.gif) 10px 1px no-repeat; } /* ==== Elternebene, wenn der Schalter gesetzt // Parent, if switch is set ==== */ .nav-list-ul ul li.sub_parent a, .nav-list-ul ul li.sub_parent a:link, .nav-list-ul ul li.sub_parent a:visited, .nav-list-ul ul li.sub_parent a:active { color: White; font-weight: normal; background: #81909F url(../../img/article/navi1_norm.gif) 10px 1px no-repeat; } /* ==== active link <a> // aktiver Link <a> ==== */ .nav-list-ul ul li.active a, .nav-list-ul ul li.active a:link, .nav-list-ul ul li.active a:visited, .nav-list-ul ul li.active a:active { color: White; font-weight: bold; background: #63819F url(../../img/article/navi1_act.gif) 10px 1px no-repeat; } /* ==== hover: Maus über Link <a> // hover link <a> ==== */ .nav-list-ul ul li a:hover { color: White; /* text-decoration: underline; */ background: #597B8F url(../../img/article/navi1_hov.gif) 10px 1px no-repeat; } .nav-list-ul ul li.sub_no a:hover { color: White; background: #597B8F url(../../img/article/navi1_hov.gif) 10px 1px no-repeat; } .nav-list-ul ul li.sub_ul a:hover { background: #597B8F url(../../img/article/navi1_act_hov.gif) 10px 1px no-repeat; } /* ==== hover: Wenn Sublevel vorhanden <a> // hover: "if there is a sub_level" <a> ==== */ .nav-list-ul ul li.sub_ul_true a:hover { background: #597B8F url(../../img/article/navi1_hov.gif) 10px 1px no-repeat; } /* ==== hover: Parent Link <a> // hover: "Only for the parent link" <a> ==== */ .nav-list-ul ul li.sub_parent a:hover { background: #597B8F url(../../img/article/navi1_hov.gif) 10px 1px no-repeat; } /* ==== hover: Der aktive Link <a> // hover: "Only for the active link" <a> ==== */ .nav-list-ul ul li.active a:hover { background: #597B8F url(../../img/article/navi1_act_hov.gif) 10px 1px no-repeat; } /* ==== LEVEL X+1 =============================================== */ .nav-list-ul ul ul li.sub_no a, .nav-list-ul ul ul li.sub_no a:link, .nav-list-ul ul ul li.sub_no a:visited, .nav-list-ul ul ul li.sub_no a:active, .nav-list-ul ul ul li.sub_ul a, .nav-list-ul ul ul li.sub_ul a:link, .nav-list-ul ul ul li.sub_ul a:visited, .nav-list-ul ul ul li.sub_ul a:active { display: block; text-decoration: none; text-transform: none; font-weight: normal; color: #FFFFFF; background: #8E9FAF url(../../img/article/navi1_norm.gif) 25px 1px no-repeat; padding: 1px 0 0 40px; border-bottom: 1px solid #ccc; /* IE6 Bug */ \width: 210px; /* IE5x Opera <= 5 */ widt\h: 170px; /* = (Width of Menu Items) - (padding-right + left) */ } /* article navi */ .nav-list-ul ul ul li.asub_no a, .nav-list-ul ul ul li.asub_no a:link, .nav-list-ul ul ul li.asub_no a:visited, .nav-list-ul ul ul li.asub_no a:active, .nav-list-ul ul ul li.asub_ul a, .nav-list-ul ul ul li.asub_ul a:link, .nav-list-ul ul ul li.asub_ul a:visited, .nav-list-ul ul ul li.asub_ul a:active { display: block; text-decoration: none; text-transform: none; font-weight: normal; color: #FFFFFF; background: #8E9FAF url(../../img/article/navi1_anorm.gif) 25px 1px no-repeat; padding: 1px 0 0 40px; border-bottom: 1px solid #ccc; /* IE6 Bug */ \width: 210px; /* IE5x Opera <= 5 */ widt\h: 170px; /* = (Width of Menu Items) - (padding-right + left) */ } /* state for the active point if there is a sub_level */ .nav-list-ul ul ul li.sub_ul_true a, .nav-list-ul ul ul li.sub_ul_true a:link, .nav-list-ul ul ul li.sub_ul_true a:visited, .nav-list-ul ul ul li.sub_ul_true a:active { color: White; font-weight: normal; background: #839AAF url(../../img/article/navi1_sub_true.gif) 25px 1px no-repeat; } /* state for the active path (link tracing) */ .nav-list-ul ul ul li.act_path a, .nav-list-ul ul ul li.act_path a:link, .nav-list-ul ul ul li.act_path a:visited, .nav-list-ul ul ul li.act_path a:active { color: White; font-weight: bold; background: #6D8EAF url(../../img/article/navi1_act.gif) 25px 1px no-repeat; } /* state for the active link */ .nav-list-ul ul ul li.active a, .nav-list-ul ul ul li.active a:link, .nav-list-ul ul ul li.active a:visited, .nav-list-ul ul ul li.active a:active { color: White; font-weight: bold; background: #6D8EAF url(../../img/article/navi1_act.gif) 25px 1px no-repeat; } .nav-list-ul ul ul li a:hover { color: White; /* text-decoration: underline; */ background: #6B828F url(../../img/article/navi1_hov.gif) 25px 1px no-repeat; } .nav-list-ul ul ul li.sub_no a:hover { color: White; background: #6B828F url(../../img/article/navi1_hov.gif) 25px 1px no-repeat; } .nav-list-ul ul ul li.asub_no a:hover { color: White; background: #6B828F url(../../img/article/navi1_ahov.gif) 25px 1px no-repeat; } .nav-list-ul ul ul li.sub_ul a:hover { background: #6B828F url(../../img/article/navi1_act_hov.gif) 25px 1px no-repeat; } /* Only for "if there is a sub_level" */ .nav-list-ul ul ul li.sub_ul_true a:hover { background: #6B828F url(../../img/article/navi1_hov.gif) 25px 1px no-repeat; } /* Only for the active link */ .nav-list-ul ul ul li.active a:hover { background: #6B828F url(../../img/article/navi1_act_hov.gif) 25px 1px no-repeat; } /* ==== LEVEL X+2 =============================================== */ .nav-list-ul ul ul ul li.sub_no a, .nav-list-ul ul ul ul li.sub_no a:link, .nav-list-ul ul ul ul li.sub_no a:visited, .nav-list-ul ul ul ul li.sub_no a:active, .nav-list-ul ul ul ul li.sub_ul a, .nav-list-ul ul ul ul li.sub_ul a:link, .nav-list-ul ul ul ul li.sub_ul a:visited, .nav-list-ul ul ul ul li.sub_ul a:active { display: block; text-decoration: none; text-transform: none; font-weight: normal; color: #FFFFFF; background: #83A1BF url(../../img/article/navi1_norm.gif) 40px 1px no-repeat; padding: 1px 0 0 55px; border-bottom: 1px solid #ccc; /* IE6 Bug */ \width: 210px; /* IE5x Opera <= 5 */ widt\h: 155px; /* = (Width of Menu Items) - (padding-right + left) */ } /* state for the active point if there is a sub_level */ .nav-list-ul ul ul ul li.sub_ul_true a, .nav-list-ul ul ul ul li.sub_ul_true a:link, .nav-list-ul ul ul ul li.sub_ul_true a:visited, .nav-list-ul ul ul ul li.sub_ul_true a:active { color: White; font-weight: normal; background: #83A1BF url(../../img/article/navi1_sub_true.gif) 40px 1px no-repeat; } /* state for the active path (link tracing) */ .nav-list-ul ul ul ul li.act_path a, .nav-list-ul ul ul ul li.act_path a:link, .nav-list-ul ul ul ul li.act_path a:visited, .nav-list-ul ul ul ul li.act_path a:active { color: White; font-weight: bold; background: #83A1BF url(../../img/article/navi1_act.gif) 40px 1px no-repeat; } /* state for the active link */ .nav-list-ul ul ul ul li.active a, .nav-list-ul ul ul ul li.active a:link, .nav-list-ul ul ul ul li.active a:visited, .nav-list-ul ul ul ul li.active a:active { color: White; font-weight: bold; background: #83A1BF url(../../img/article/navi1_act.gif) 40px 1px no-repeat; } .nav-list-ul ul ul ul li a:hover { color: White; /* text-decoration: underline; */ background: #6D879F url(../../img/article/navi1_hov.gif) 40px 1px no-repeat; } .nav-list-ul ul ul ul li.sub_no a:hover { color: White; background: #6D879F url(../../img/article/navi1_hov.gif) 40px 1px no-repeat; } .nav-list-ul ul ul ul li.sub_ul a:hover { background: #6D879F url(../../img/article/navi1_act_hov.gif) 40px 1px no-repeat; } /* Only for "if there is a sub_level" */ .nav-list-ul ul ul ul li.sub_ul_true a:hover { background: #6D879F url(../../img/article/navi1_hov.gif) 40px 1px no-repeat; } /* Only for the active link */ .nav-list-ul ul ul ul li.active a:hover { background: #6D879F url(../../img/article/navi1_act_hov.gif) 40px 1px no-repeat; } /* ====================================================================== >= V1.4.4 r387 CSS for a article navigation menu <div class="nlu_navi1">{ NAV_LIST_UL:FA,0,,act_path,active }</div> Level 0 - 3; 28.12.09 flip-flop (KH) ========================================================================= */ .nav-list-ul ul li.asub_no a, .nav-list-ul ul li.asub_no a:link, .nav-list-ul ul li.asub_no a:visited, .nav-list-ul ul li.asub_no a:active { display: block; text-decoration: none; text-transform: none; font-weight: normal; color: #FFFFFF; background: #83A1BF url(../../img/article/navi1_anorm.gif) 10px 1px no-repeat; padding: 1px 0 0 25px; border-bottom: 1px solid #ccc; /* IE6 Bug */ \width: 210px; /* IE5x Opera <= 5 */ widt\h: 185px; /* = (Width of Menu Items) - (padding-right + left) */ } .nav-list-ul ul ul li.asub_no a, .nav-list-ul ul ul li.asub_no a:link, .nav-list-ul ul ul li.asub_no a:visited, .nav-list-ul ul ul li.asub_no a:active { display: block; text-decoration: none; text-transform: none; font-weight: normal; color: #FFFFFF; background: #83A1BF url(../../img/article/navi1_anorm.gif) 25px 1px no-repeat; padding: 1px 0 0 40px; border-bottom: 1px solid #ccc; /* IE6 Bug */ \width: 210px; /* IE5x Opera <= 5 */ widt\h: 170px; /* = (Width of Menu Items) - (padding-right + left) */ } .nav-list-ul ul ul ul li.asub_no a, .nav-list-ul ul ul ul li.asub_no a:link, .nav-list-ul ul ul ul li.asub_no a:visited { display: block; text-decoration: none; text-transform: none; font-weight: normal; color: #FFFFFF; background: #83A1BF url(../../img/article/navi1_anorm.gif) 40px 1px no-repeat; padding: 1px 0 0 55px; border-bottom: 1px solid #ccc; /* IE6 Bug */ \width: 210px; /* IE5x Opera <= 5 */ widt\h: 155px; /* = (Width of Menu Items) - (padding-right + left) */ } /* state for the active link */ .nav-list-ul ul li.asub_no.active a, .nav-list-ul ul li.asub_no.active a:link, .nav-list-ul ul li.asub_no.active a:visited, .nav-list-ul ul li.asub_no.active a:active { color: White; font-weight: bold; background: #83A1BF url(../../img/article/navi1_aact.gif) 10px 1px no-repeat; } /* state for the active link */ .nav-list-ul ul ul li.asub_no.active a, .nav-list-ul ul ul li.asub_no.active a:link, .nav-list-ul ul ul li.asub_no.active a:visited, .nav-list-ul ul ul li.asub_no.active a:active { color: White; font-weight: bold; background: #83A1BF url(../../img/article/navi1_aact.gif) 25px 1px no-repeat; } /* state for the active link */ .nav-list-ul ul ul ul li.asub_no.active a, .nav-list-ul ul ul ul li.asub_no.active a:link, .nav-list-ul ul ul ul li.asub_no.active a:visited, .nav-list-ul ul ul ul li.asub_no.active a:active { color: White; font-weight: bold; background: #83A1BF url(../../img/article/navi1_aact.gif) 40px 1px no-repeat; } .nav-list-ul ul li.asub_no a:hover { color: White; background: #6D879F url(../../img/article/navi1_ahov.gif) 10px 1px no-repeat; } .nav-list-ul ul ul li.asub_no a:hover { color: White; background: #6D879F url(../../img/article/navi1_ahov.gif) 25px 1px no-repeat; } .nav-list-ul ul ul ul li.asub_no a:hover { color: White; background: #6D879F url(../../img/article/navi1_ahov.gif) 40px 1px no-repeat; } /* ===END=== Article navigation */ /* Nur Home darstellen */ /* .nav-list-ul ul li.sub_ul {display: none;} */ /*==== END LEVEL X ============================================= */ /* Holly Hack. IE Requirement \*/ * html .nav-list-ul ul li { float: left; height: 1%; } * html .nav-list-ul ul li a { height: 1%; } /* ==== End nav-list-ul ========================================= */