Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save gunnarbittersmann/43abf1cd8ff312058af3 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/43abf1cd8ff312058af3 to your computer and use it in GitHub Desktop.
description list
/**
* description list
*/
dl { font: 1.5em/1.25 Georgia; width: 20em; margin: 1.25em auto }
dt, dd { display: inline; margin: 0 }
dt { font-style: italic }
dt::after { content: ": " }
dd::after { content: ""; display: block; height: 1.25em }
<dl>
<dt>short name</dt>
<dd>short value</dd>
<dt>short name</dt>
<dd>value can be long, much longer than you would have expected</dd>
<dt>name can be long, much longer than you would have expected</dt>
<dd>short value</dd>
<dt>name can be long, much longer than you would have expected</dt>
<dd>value can be long, much longer than you would have expected</dd>
</dl>
// alert('Hello world!');
{"view":"split-vertical","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