Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lists [ol/ul] in table cell 1

Status
Not open for further replies.

grega

Programmer
Feb 2, 2000
932
GB
Why does the list closing tag force an extra line under the list in a table cell in IE6? [fine in Mozilla].
Code:
<html>
<head/>
<body>
<table border="1">
  <tr>
    <td>
      <ol>
        <li>element 1</li>
        <li>element 2</li>
      </ol>
    </td>
  </tr>
</table>
</body>
</html>
Try the code above to see what I mean. If you remove the closing </ol> tag it's fine. Any ideas?

Greg.
 
Because it is a block level element. You will have to control the spacing with CSS eg

<ol style="margin:0;">

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top