Saturday, 15 June 2013

HTML table has random spacing -


There are a lot of differences between the rows in my tables for some reasons and I'm not sure why I have the padding and spacing 0. Is set to ...

table cells = "0" cellpadding = "0" width = "460" range = "0"

. ..but there is a lot of difference between the lines of text, why should there be any idea? Here's a sample of the table ...

  & lt; Table cellpassing = "0" cellpadding = "0" width = "460" range = "0" & ​​gt; & Lt; TR & gt; & Lt; Td width = "12" rowspan = "17" & gt; & Lt; Img src = "picture / z_spacer.gif" width = "10" height = "10" /> gt; & Lt; / Td> & Lt; Td height = "30" colspan = "2" align = "left" valign = "top" & gt; & Lt; P class = "title" & gt; With date ... & lt; Br / & gt; & Lt; / P & gt; & Lt; / TD & gt; & Lt; Td width = "20" rowspan = "17" & gt; & Lt; Img src = "images / z_spacer.gif" width = "10" height = "10" /> gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td width = "106" height = "20" align = "left" valign = "top" & gt; & Lt; P class = "bodybold" & gt; what? & Lt; / P & gt; & Lt; / Td> & Lt; Td width = "322" height = "20" align = "left" valign = "top" & gt; & Lt; P class = "body" & gt; Monday morning meeting & lt; Img src = "images / z_spacer.gif" alt = "width =" 10 "height =" 10 "/> gt; & Lt; / P & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt;   

And I also have some CSS code ...

  table {border: 0 solid #fffff; Margin: 0; Padding: 0; Degradation: collapse; } Tr, td {border: 0 solid #FFFFFF; Margin: 0; Padding: 0; }    

There are margins on extra spaces material attempts to add the following style to the style sheet

  td * {margin: 0px; }   

This will erase the margins of the content. If necessary, adjust the price to make more space.

No comments:

Post a Comment