
9 changed files with 53 additions and 19 deletions
After Width: | Height: | Size: 324 KiB |
@ -1,12 +1,26 @@ |
|||||||
.centered-line { |
.centered-line { |
||||||
width: 100%; |
overflow: hidden; |
||||||
text-align: center; |
text-align: center; |
||||||
border-bottom: 1px solid #000; |
color: #fff; |
||||||
line-height: 0.1em; |
|
||||||
margin: 10px 0 20px; |
|
||||||
} |
} |
||||||
|
|
||||||
.centered-line span { |
.centered-line::before, |
||||||
background:#eee; |
.centered-line::after { |
||||||
padding:0 10px; |
background-color: #fff; |
||||||
|
content: ""; |
||||||
|
display: inline-block; |
||||||
|
height: 1px; |
||||||
|
position: relative; |
||||||
|
vertical-align: middle; |
||||||
|
width: 50%; |
||||||
|
} |
||||||
|
|
||||||
|
.centered-line::before { |
||||||
|
right: 0.5em; |
||||||
|
margin-left: -50%; |
||||||
|
} |
||||||
|
|
||||||
|
.centered-line::after { |
||||||
|
left: 0.5em; |
||||||
|
margin-right: -50%; |
||||||
} |
} |
Loading…
Reference in new issue