Last active
September 28, 2015 11:13
-
-
Save mhairston/bfcce7c0da85ffa78add to your computer and use it in GitHub Desktop.
Insert line break after inline element
This file contains hidden or 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
/* | |
Insert a line break after inline element | |
(not the same as display:block) | |
from CSS Secrets by Lea Verou | |
*/ | |
.u-line-break::after { | |
content: '\A'; | |
white-space: pre; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment