Hello all.
I am currently turning a table site into a tabless site for a friend so it would be easier to use MODx (and fewer headaches).
So far I have encounterd a few problems, such as the div not adjusting its height tot he height of the background image.
The other biggest problem I have however is that the within the nav bar I have a background image with repeat-x. I then have some css so that when the link is active it displays an alternative image. The problem is however that it does not
Here is what it all looks like...
<div id="nav"> [[MenuHori?id=0]] </div>
Oh I forgot to mention that MenuHori is something I have adapted from etomite to work in MODx as it is for me simple and easy, but effective.
Ok and the CSS is...
/* Main Navigation Menu, uses images as backgrounds */
#nav {
height: 50px;
background: #fff url(./images/menu-bg.gif) repeat-x top left;
text-align: left;
padding-left: 20px;
padding-bottom: 3px;
padding-top: 10px;
}
#nav a img {
border: none;
}
#nav a {
color: #777777;
text-decoration: none;
}
#nav a:visited {
color: #777777;
text-decoration: none;
}
#nav a:hover {
color: #000000;
text-decoration: underline;
}
#nav a:active {
color: #ffffff;
background: #fff url(./images/current-bg.gif) repeat-x top left;
}
Does anyone have any ideas?
Many thanks,
Tom.