Skip to content

Instantly share code, notes, and snippets.

@tecnocrata
Created November 2, 2012 22:30
Show Gist options
  • Select an option

  • Save tecnocrata/4004755 to your computer and use it in GitHub Desktop.

Select an option

Save tecnocrata/4004755 to your computer and use it in GitHub Desktop.
El efecto de Normal/Hover/Pressed en un Tile/Boton usando CSS
.tile-wrapper a
{
border: 0px solid red;
margin: 0px;
width: 128px;
height:128px;
display:block;
}
.tile-wrapper a:hover
{
border: 0px solid green;
margin: 0px;
width: 128px;
height:128px;
display:block;
}
.tile-wrapper a#id_Alerts
{
background: url("../../Content/images/functionIcons/Active.png");
}
.tile-wrapper a#id_Alerts:hover
{
background: url("../../Content/images/functionIcons/Hover.png");
}
.tile-wrapper a#id_Alerts:active
{
background: url("../../Content/images/functionIcons/Pressed.png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment