Skip to content

Instantly share code, notes, and snippets.

@wouterj
Created February 15, 2012 18:14
Show Gist options
  • Save wouterj/1837874 to your computer and use it in GitHub Desktop.
Save wouterj/1837874 to your computer and use it in GitHub Desktop.
Untitled
.styled-button
{
background-color: buttonface;
border: 2px outset #aaa;
border-radius: 4px;
background-image: linear-gradient(
top,
#efefef 50%,
#bbb 50%
);
}
.styled-button:hover
{
background-image: linear-gradient(
top,
#eee 50%,
#aaa 50%
);
}
.styled-button:active
{
background-image: linear-gradient(
top,
#bbb 50%,
#efefef 50%
);
}
<button class="styled-button">Some button</button>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment