Skip to content

Instantly share code, notes, and snippets.

@MuratOrs
Created March 11, 2016 01:44
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 MuratOrs/cbfcc0d03b125cea6fba to your computer and use it in GitHub Desktop.
Save MuratOrs/cbfcc0d03b125cea6fba to your computer and use it in GitHub Desktop.
Линия от текста в разные стороны
.title {
position:relative;
z-index:1;
overflow:hidden;
text-align:center;
}
.title:before,
.title:after {
content:'';
display:inline-block;
width:100%;
height:1px;
background:#000;
z-index:-1;
position:relative;
vertical-align:middle;
}
.title:before {
right:20px;
margin:0 0 0 -100%;
}
.title:after {
left:20px;
margin:0 -100% 0 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment