Skip to content

Instantly share code, notes, and snippets.

@andrewdh
Created July 12, 2012 23:20
Show Gist options
  • Save andrewdh/3101778 to your computer and use it in GitHub Desktop.
Save andrewdh/3101778 to your computer and use it in GitHub Desktop.
Header Underline Experiment
/**
* Header Underline Experiment
*/
body {
margin: 0;
font: 1rem/1 Arial, sans-serif;
}
.test {
font-size: 3rem;
color: #000;
float: left;
margin: 1rem 0 0 20%;
border-bottom:0.125rem solid;
}
.test a {
border-bottom:0.125rem solid;
text-decoration: none;
color: inherit;
transition: all 0.3s ease-in-out;
position: relative;
}
.test a:hover {
color: hsla(0,75%,50%,1);
}
.test a:after {
content: "";
position: absolute;
background-color: hsla(0,75%,50%,1);
width: 100%;
height:
0.125rem;
left: 0;
top: 3rem;
}
<h2 class="test"><a href="#">Test Header</a></h2>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment