1.

How To Style Table Cells?

Answer»

Margin, Border and PADDING are difficult to apply to inline elements. OFFICIALLY, the <TD> tag is a BLOCK level element because it can CONTAIN other block level elements (see Basics - Elements). 

If you need to set special margins, borders, or padding inside a table cell, then use this markup:

<td>
yourtext </div></td> 
to apply the CSS RULES to the div inside the cell. </p>

Margin, Border and Padding are difficult to apply to inline elements. Officially, the <TD> tag is a block level element because it can contain other block level elements (see Basics - Elements). 

If you need to set special margins, borders, or padding inside a table cell, then use this markup:

<td>
yourtext </div></td> 
to apply the CSS rules to the div inside the cell. </p>



Discussion

No Comment Found