Add margin, padding and set color for DD : dd « Tags « HTML / CSS

Add margin, padding and set color for DD

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" media="screen">
  #divID dd {
    margin-left: 15px;
    padding-left: 15px;
    color: #999;
    background: url(img/dd_arrow.gif) no-repeat 0 2px;


<div id="divID">
  <dd>A simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.</dd>
  <dd>A family of current and future document types and modules that reproduce, subset, and extend HTML, reformulated in XML.</dd>
  <dd>A simple, very flexible text format derived from SGML.</dd>



Related examples in the same category

1.Add background image for DD
2.dl, dt and dd
3.'dd': Definition description