Home › Forums › CSS › [Solved] CSS Background Image Trouble › Re: [Solved] CSS Background Image Trouble
November 19, 2009 at 9:19 am
#66805
Participant
All you need to do to put the arrow on the link is change:
Code:
#topnav li#active {
background:transparent url(../images/topnavactive.png) no-repeat scroll center bottom;
}
#topnav li {
display:inline;
float:left;
margin:0 10px;
padding-bottom:10px;
}
background:transparent url(../images/topnavactive.png) no-repeat scroll center bottom;
}
#topnav li {
display:inline;
float:left;
margin:0 10px;
padding-bottom:10px;
}
to:
Code:
#topnav li#active a {
background:transparent url(../images/topnavactive.png) no-repeat scroll center bottom;
}
#topnav li {
display:inline;
float:left;
margin:0 10px;
}
#topnav li a {
color:#FFFFFF;
display:inline;
padding-bottom:8px;
}
background:transparent url(../images/topnavactive.png) no-repeat scroll center bottom;
}
#topnav li {
display:inline;
float:left;
margin:0 10px;
}
#topnav li a {
color:#FFFFFF;
display:inline;
padding-bottom:8px;
}
And to center the menu you could try this http://matthewjamestaylor.com/blog/beautiful-css-centered-menus-no-hacks-full-cross-browser-support