Created
February 13, 2015 14:42
-
-
Save ishmaelahmed/a773c3c9db1a336a87d6 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/fexowa
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
span{ | |
position:relative; | |
display:inline-block; | |
overflow:hidden; | |
} | |
span span{ | |
position:absolute; | |
display:block; | |
bottom:1px; | |
left:.6em; | |
height:100%; | |
width:100%; | |
border-bottom: 1px solid black; | |
} | |
.b-offset{ | |
position:relative; | |
display:inline-block; | |
overflow:hidden; | |
} | |
.b-offset span{ | |
position:absolute; | |
display:block; | |
bottom:1px; | |
left:.6em; | |
height:100%; | |
width:100%; | |
border-bottom: 1px solid black; | |
} | |
</style> | |
</head> | |
<body> | |
<span>First<span></span></span> | |
<span>Second<span></span></span> | |
<span>This is a very long bit of text<span></span></span> | |
<span class='b-offset'>First<span></span</span> | |
<script id="jsbin-source-css" type="text/css">span{ | |
position:relative; | |
display:inline-block; | |
overflow:hidden; | |
} | |
span span{ | |
position:absolute; | |
display:block; | |
bottom:1px; | |
left:.6em; | |
height:100%; | |
width:100%; | |
border-bottom: 1px solid black; | |
} | |
.b-offset{ | |
position:relative; | |
display:inline-block; | |
overflow:hidden; | |
} | |
.b-offset span{ | |
position:absolute; | |
display:block; | |
bottom:1px; | |
left:.6em; | |
height:100%; | |
width:100%; | |
border-bottom: 1px solid black; | |
} | |
</script> | |
</body> | |
</html> |
This file contains 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
span{ | |
position:relative; | |
display:inline-block; | |
overflow:hidden; | |
} | |
span span{ | |
position:absolute; | |
display:block; | |
bottom:1px; | |
left:.6em; | |
height:100%; | |
width:100%; | |
border-bottom: 1px solid black; | |
} | |
.b-offset{ | |
position:relative; | |
display:inline-block; | |
overflow:hidden; | |
} | |
.b-offset span{ | |
position:absolute; | |
display:block; | |
bottom:1px; | |
left:.6em; | |
height:100%; | |
width:100%; | |
border-bottom: 1px solid black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment