views:

32

answers:

0

Hi,

I want to list name/value pair and i am using dl list for this

It should display like this

name1 value1

name2 value2

<dl>
   <dt>Name1</dt>
   <dd>Value1</dd>
   <dt>Name1</dt>
   <dd>Value1</dd>
</dl>

dl dt,dl dd{
    display:block;
    float:left;
    margin:.5em 1.5em 0 0;
}
dl dt{
    width:9em;
    clear:left;
}

In IE second 'dd' tag comes next to first 'dd' tag.