Antwort #3 am: 29. November 2013, 23:48:18
Hier mal der Code aus meiner html Vorlage:
<div id="topmenuwrap">
<div class="topmenu">
<ul>
<li class="active"><a href="index.html" title="Home">Startseite</a></li>
<li><a href="warenkorb.html" title="New">Warenkorb</a></li>
<li><a href="konto.html" title="Revised">Mein Konto</a></li>
<li><a href="kasse.html" title="Tools">Kasse</a></li>
<li><a href="anmelden.html" title="CSS">Anmelden</a></li>
</ul>
</div><!--eof topmenu-->
</div><!--eof topmenuwrap-->
Und das ist der Code der von modified im Browser ausgegeben wird:
<div id="topmenuwrap">
<div class="topmenu">
<ul>
<li><a href="http://testshop.de/">Startseite</a></li>
<li><a href="http://testshop.de/shopping_cart.php">Warenkorb</a></li>
<li><a href="https://testshop.de/account.php">Mein Konto</a></li>
<li><a href="https://testshop.de/create_account.php">Neukunde?</a></li>
<li><a href="https://testshop.de/checkout_shipping.php">Kasse</a></li>
<li><a href="https://testshop.de/login.php">Anmelden</a></li>
</ul>
</div><!--eof topmenu-->
</div><!--eof topmenuwrap-->
Wie Ihr seht, wird das active in Zeile 4 von modified nicht übergeben. Und da liegt mein Problem.
Der Vollständigkeit halber hier noch das css:
.topmenu ul{
margin:0px;
margin-left: 40px; /*margin between first menu item and left browser edge*/
padding: 0;
list-style: none;
}
.topmenu li{
display: inline;
margin: 0 2px 0 0;
padding: 0;
text-transform:uppercase;
}
.topmenu a{
float: left;
display: block;
font: bold 12px Arial;
color: black;
text-decoration: none;
margin: 0 1px 0 0; /*Margin between each menu item*/
padding: 5px 10px 9px 10px; /*Padding within each menu item*/
background-color: white; /*Default menu color*/
/*BELOW 4 LINES add rounded bottom corners to each menu item.
ONLY WORKS IN FIREFOX AND FUTURE CSS3 CAPABLE BROWSERS
REMOVE IF DESIRED*/
-moz-border-radius-bottomleft: 5px;
border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
border-bottom-right-radius: 5px;
}
.topmenu a:hover{
background-color: #FF0200; /*Red color theme*/
padding-top: 9px; /*Flip default padding-top value with padding-bottom */
padding-bottom: 5px; /*Flip default padding-bottom value with padding-top*/
color: white;
}
.topmenu .active a{ /** currently selected menu item **/
background-color: #FF0200; /*Red color theme*/
padding-top: 9px; /*Flip default padding-top value with padding-bottom */
padding-bottom: 5px; /*Flip default padding-bottom value with padding-top*/
color: white;
}