- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
December 3, 2010 at 3:47 am #30879
Wendihi
MemberHi, I’m stuck. I want to have the current page link (image) highlighted but I can’t figure out the right css. Really stupid that I can’t find it…
This is the code on the page
This is the css I have now.
#menubar{
width:544px;
height:39px;
position:absolute;
margin:82px 0 0 202px;
background:url(images/menubg.gif) no-repeat;
}
#menubar ul li {
display: block;
float: left;
font-size: 12px;
list-style: none outside none;
text-align: center;
}
#menubar ul li a {
color:#000;
font-weight:bold;
font-family:"Arial Black", Gadget, sans-serif;
}
#menubar #menu-item-30 a {
color: #008800;
font-family: "Arial Black",Gadget,sans-serif;
font-weight: bold;
height:39px;
background-image:url(images/tombol-on_01.jpg);
text-indent:-9999px;
display:block;
width:60px;
padding-right:11px;
}
#menubar #menu-item-30 a:hover {
color:#1d6fc7;
}
#menu-item-30 li {
padding-right:11px;
display:block;
}
#menubar #menu-item-34 a {
color: #008800;
font-family: "Arial Black",Gadget,sans-serif;
font-weight: bold;
height:39px;
background-image:url(images/tombol-off_02.jpg);
text-indent:-9999px;
display:block;
width:79px;
}
#menubar #menu-item-34 a:hover {
background-image:url(images/tombol-on_02.jpg);
}
#menubar #menu-item-34 current_page_item a {
color: #008800;
font-family: "Arial Black",Gadget,sans-serif;
font-weight: bold;
height:39px;
background-image:url(images/tombol-on_02.jpg);
display:block;
width:79px;
}December 3, 2010 at 5:40 am #71256sylenix
MemberDecember 3, 2010 at 12:02 pm #71194TheDoc
MemberThe reason it’s not working is because you don’t have a period in front of the class “current_page_item” in your CSS file.
Should be:
#menubar #menu-item-34 .current_page_item a {
/* Stuff */
}December 3, 2010 at 3:16 pm #71177loftninja
Memberthanks
December 3, 2010 at 4:22 pm #71169jsdev
Member@loftninja you have bigger problems than elements above your menu. try selecting anything from your menu it hides as you hover over the links, not giving much time to click one.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.