Last active
September 19, 2021 16:29
-
-
Save csssecrets/7eb242f4e8f078cadbca to your computer and use it in GitHub Desktop.
Inserting line breaks
This file contains 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
/** | |
* Inserting line breaks | |
*/ | |
dt, dd { | |
display: inline; | |
margin: 0; | |
} | |
dd { | |
font-weight: 600; | |
} | |
dd + dt::before { | |
content: "\A"; | |
white-space: pre; | |
} | |
dd + dd::before { | |
content: ', '; | |
font-weight: normal; | |
margin-left: -.25em; | |
} | |
body { | |
font: 150%/1.6 Baskerville, Palatino, serif; | |
} |
This file contains 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
<dl> | |
<dt>Name:</dt> | |
<dd>Lea Verou</dd> | |
<dt>Email:</dt> | |
<dd>[email protected]</dd> | |
<dd>[email protected]</dd> | |
<dt>Location:</dt> | |
<dd>Earth</dd> | |
</dl> |
This file contains 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
// alert('Hello world!'); |
This file contains 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment