[Opgelost] Weer iets met het menu...
Posted: Mon Sep 28, 2009 2:24 pm
[Nieuwe vraag]
Nu denk ik dat ik eindelijk alles goed heb... Krijg ik de afstanden niet goed.
Mijn active link wil niet even ver uit elkaar staan als de normale links.
(sorry voor de vele vragen)
http://www.energieinbalans.com/index.php?page=home-2
Nu denk ik dat ik eindelijk alles goed heb... Krijg ik de afstanden niet goed.
Mijn active link wil niet even ver uit elkaar staan als de normale links.
(sorry voor de vele vragen)
http://www.energieinbalans.com/index.php?page=home-2
Code: Select all
/********************MENU*********************/
/* hack for IE6 */
* html div#menu_horiz {
/* hide ie/mac \*/
height: 1%;
/* end hide */
}
div#menu_horiz {
width: 800px;
height: 33px;
margin-top: -14px;
}
div#menu_horiz ul {
list-style-type: none;
margin: 0;
padding-top: 10px;
color: #FFF;
font-style: none;
}
/* menu list items */
div#menu_horiz li {
/* makes the list horizontal */
float: left;
/* remove any default bullets */
list-style: none;
/* still no margin */
margin-left: 5px;
}
/* the links, that is each list item */
div#menu_horiz a {
/* pushes li out from the text, sort of like making links a certain size, if you give them a set width and/or height you may limit you ability to have as much text as you need */
padding: 10px 5px 10px 0px;
/* still no margin */
margin: 0;
/* removes default underline */
text-decoration: none;
/* default link color */
color: #FFF;
/* makes it hold a shape, IE has problems with this, fixed above */
display: block;
}
/* hover state for links */
div#menu_horiz li a:hover {;
/* set your image here, dark grey image with white text set above*/
text-decoration: underline;
color: #FFF;
list-style-type: none;
margin: 0;
padding-top: 10px;
color: #FFF;
font-style: none;
}
div#menu_horiz a span {
/* compensates for no left padding on the "a" */
padding: 0px 0px 0px 0px;
color: #FFF
list-style-type: none;
margin-left: 0px;
padding-top: 10px;
color: #FFF;
font-style: none;
}
div#menu_horiz li.parent a span {
/* no left padding on the "a" we can set it here, it lets us use the span for an image */
padding-right: 10px;
/* set your image here, down arrow to note it has children, left side of text */
color: #FFF;
list-style-type: none;
margin: 10;
padding-top: 10px;
color: #FFF;
font-style: none;
}
div#menu_horiz li.parent a:hover span {
padding-left: 5px;
/* hover replaces default with right arrow image */
list-style-type: none;
margin: 0;
padding-top: 10px;
color: #FFF;
font-style: none;
color: #FFF;
}
div#menu_horiz li.menuactive a span {
padding-left: 5px;
/* menuactive replaces default with right arrow image */
list-style-type: none;
margin: 10;
padding-top: 10px;
color: #FFF;
font-style: none;
padding-right: 0px;
}
/* active parent, that is the first level parent of a child page that is the current page */
div#menu_horiz li.menuactive, div#menu_horiz li.menuactive a:hover {
/* set your image here, light image with #000/black text set below*/
font-weight: bold;
list-style-type: none;
margin: 0;
padding-top: 10px;
color: #FFF;
font-style: none;
color: #FFF;
padding-left: 10px;
}