Skip to content

Instantly share code, notes, and snippets.

@betweenbrain
Created November 3, 2011 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betweenbrain/1336627 to your computer and use it in GitHub Desktop.
Save betweenbrain/1336627 to your computer and use it in GitHub Desktop.
Example Joomla 1.7 Menu Image Sprite CSS for Construct Template Framework
#nav ul.menu li a {
display:block;
text-indent: -999em;
width:55px;
height:46px;
background-image:url('../images/menu.png');
background-repeat: no-repeat;
}
#nav ul.menu li.item-435 a{
background-position: -170px 0.9px;
}
#nav ul.menu li.item-435 a:hover{
background-position: -170px -56px;
}
#nav ul.menu li.item-435 a:active{
background-position: -170px -112px;
}
#nav ul.menu li.item-294 a{
background-position: -266px 0.9px;
}
#nav ul.menu li.item-294 a:hover{
background-position: -266px -56px;
}
#nav ul.menu li.item-294 a:active{
background-position: -266px -112px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment