Skip to content

Instantly share code, notes, and snippets.

@trevorgreenleaf
Created November 25, 2014 03:37
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 trevorgreenleaf/772881502d67dbad1891 to your computer and use it in GitHub Desktop.
Save trevorgreenleaf/772881502d67dbad1891 to your computer and use it in GitHub Desktop.
Basic CSS Btn Hover
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Btn Hovers</title>
<style>
a.btn {
width:200px;
height: 200px;
color:#fff;
font-size: 30px;
background-color: #ccc;
display: block;
}
a.btn:hover p {
position: absolute;
top:0px;
display: block;
}
a.btn p {
position: absolute;
top:0px;
display: none;
}
</style>
</head>
<body>
<a href="" class="btn">
<p>show me</p>
</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment