Skip to content

Instantly share code, notes, and snippets.

@ishmaelahmed
Created February 13, 2015 14:42
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 ishmaelahmed/a773c3c9db1a336a87d6 to your computer and use it in GitHub Desktop.
Save ishmaelahmed/a773c3c9db1a336a87d6 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/fexowa
<!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>
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