We help IT Professionals succeed at work.
Get Started

CSS problem with Definition List

297 Views
Last Modified: 2013-11-19

Hello Experts,

Im getting crazy trying to solve this staircase effect only on IE7 and IE6 as usual.(on FF and Safari and IE8 looks very good)
For example my data output is suppose to look like the following:

person-name            company-name
person-name            company-name
person-name            company-name
person-name            company-name
person-name            company-name


But on IE7 looks like this:

person-name            company-name
                        person-name            company-name
                                                person-name            company-name
                                                                        person-name            company-name
                                                                        
                                                                        
Here is how my html and styles looks like:
<ul class="clients">
      <li>
            <dl>
                  <dt><a href="#">person-name</a></dt>
                  <dt><a href="#">person-name</a></dt>
                  <dt><a href="#">person-name</a></dt>
                  <dt><a href="#">person-name</a></dt>
                  <dt><a href="#">person-name</a></dt>
                  <dt><a href="#">person-name</a></dt>
                  <dt><a href="#">person-name</a></dt>
                  <dd>
                        <ul>
                              <li><a href="#">company-name</a></li>
                              <li><a href="#">company-name</a></li>
                              <li><a href="#">company-name</a></li>
                              <li><a href="#">company-name</a></li>
                              <li><a href="#">company-name</a></li>
                              <li><a href="#">company-name</a></li>
                              <li><a href="#">company-name</a></li>
                        </ul>
                  </dd>
            </dl>
      </li>
</ul>

ul li {
margin:0;
padding:0;
}

ul li {
float:left;
margin-right:47px;
width:150px;
}

ul a {
display:block;
margin:0;
padding-bottom:3px;
text-decoration:none;
}

ul li dd {
width:120px;
}


I would realy appreciate any type of help and advice to solve this problem.

thanks,

Winter
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 4 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE