definition list:more styling
This example shows the use of the define. signature with the special style key to add a <style type="text/css"> element inside HTML
| Xilize markup | browser rendering |
|
define. style dl.special > * { padding-bottom: 0.5em; } dl.special dt { color:purple; letter-spacing:0.1em; } dl.special dd { font-size:0.85em; } dl(special). dog : furry barker kangaroo : a large hopping marsupial cat : a furry animal ; short for concatenate cougar : puma : A large powerful wild cat ([_Felis concolor_]) of mountainous regions of the Western Hemisphere, having an unmarked tawny body ; brand name of shoe manufacturer |
|
XHTML generated
<dl class="special">
<dt>dog</dt>
<dd> furry barker</dd>
<dt>kangaroo</dt>
<dd> a large hopping marsupial</dd>
<dt>cat</dt>
<dd> a furry animal</dd>
<dd> short for concatenate</dd>
<dt>cougar</dt>
<dt> puma</dt>
<dd> A large powerful wild cat (<em>Felis concolor</em>)
of mountainous regions of the Western Hemisphere, having an unmarked tawny body</dd>
<dd> brand name of shoe manufacturer</dd>
</dl>