tags:

views:

35

answers:

3

I'd like a defintion list that looks like:

 term 1
   definition 1
 term 2
   definition 2

rather than

 term 1
      definition 1
 term 2
      definition 2

What's the easiest way to to this?

+1  A: 

Add a margin-left declaration to the <dd> element:

dd { margin-left: 15px; }

You'll have to adjust the amount to whatever suits your needs, obviously.

Paolo Bergantino
A: 

You need to set the margin-left attribute for the dd tag:

dd {
    margin-left: 20px;
}
Barry Gallagher
+1  A: 

Or:

dd {
   margin-left: 2em;
}

Which will indent 2 characters in.

chadl