Created
July 12, 2012 23:20
-
-
Save andrewdh/3101778 to your computer and use it in GitHub Desktop.
Header Underline Experiment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2 class="test"><a href="#">Test Header</a></h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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