Skip to content

Instantly share code, notes, and snippets.

@m-r-r
Forked from anonymous/index.html
Created November 25, 2015 11:25
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 m-r-r/ed21caa5ac4cf5973597 to your computer and use it in GitHub Desktop.
Save m-r-r/ed21caa5ac4cf5973597 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/pehagezesu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.separator {
display: block;
width: 100%;
font-weight: 400;
font-family: sans-serif;
text-transform: uppercase;
color: silver;
font-size: .85em;
margin-right: .5em;
}
.separator__inner, .separator__line {
display: table-cell;
}
.separator__line {
width: 100%;
}
.separator__inner {
content: ' ';
}
.separator__line::before {
content: ' ';
display: block;
border: thin solid #ddd;
margin-top: -.3em;
margin-left: .5em;
}
</style>
</head>
<body>
<div class="separator">
<span class="separator__inner">Séparateur</span>
<span class="separator__line"></span>
</div>
<script id="jsbin-source-css" type="text/css">.separator {
display: block;
width: 100%;
font-weight: 400;
font-family: sans-serif;
text-transform: uppercase;
color: silver;
font-size: .85em;
margin-right: .5em;
}
.separator__inner, .separator__line {
display: table-cell;
}
.separator__line {
width: 100%;
}
.separator__inner {
content: ' ';
}
.separator__line::before {
content: ' ';
display: block;
border: thin solid #ddd;
margin-top: -.3em;
margin-left: .5em;
}
</script>
</body>
</html>
.separator {
display: block;
width: 100%;
font-weight: 400;
font-family: sans-serif;
text-transform: uppercase;
color: silver;
font-size: .85em;
margin-right: .5em;
}
.separator__inner, .separator__line {
display: table-cell;
}
.separator__line {
width: 100%;
}
.separator__inner {
content: ' ';
}
.separator__line::before {
content: ' ';
display: block;
border: thin solid #ddd;
margin-top: -.3em;
margin-left: .5em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment