Skip to content

Instantly share code, notes, and snippets.

@yangg
Forked from LeaVerou/dabblet.css
Created February 28, 2012 15:21
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 yangg/1933082 to your computer and use it in GitHub Desktop.
Save yangg/1933082 to your computer and use it in GitHub Desktop.
Flexible multiline definition lists with 2 lines of CSS
/**
* Flexible multiline definition lists with 2 lines of CSS
*/
dt, dd { display: inline; margin: 0; }
dd:after {
content: '\A';
white-space: pre;
}
<dl>
<dt>foo:</dt>
<dd>Definition of foo</dd>
<dt>bar:</dt>
<dd>Definition of bar</dd>
</dl>
{"view":"split","seethrough":"","prefixfree":"","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment