Reputation: 3
i just started learning in HTML. I'm having a problem in cell padding and spacing... the one that i created have a cell padding and spacing on all row... is it possible to have a cell spacing and padding in the 1st row but not in the 2nd row? `
</td>
<tr>
<td width="250" height="500">
</td>
<td width="750">
</td>
</tr>
<tr>
<td colspan="2" height="75">
</td>
</tr>
`
Upvotes: 0
Views: 1081
Reputation: 1608
You can simply add padding to each TD not TR But spacing between cells only for the whole TABLE
The Attribute padding is the response about cell padding
<table border="1" style="border-spacing:2px;">
<tr>
<td width="250" height="500" style="padding:5px;">One</td>
<td width="750" style="padding:5px;">Two</td>
</tr>
<tr>
<td colspan="2" height="75">Three</td>
</tr>
</table>
Upvotes: 1
Reputation: 803
I would suggest to wrap the content you want to edit in a and add css properties like for example: Take a look at this div and style combination, it gets kinda useful sometimes. You can make the particular elements special even when they are in a table with constant style. You can even add this style attribute to the / tags themselves. Maybe what you're looking for.
Upvotes: 0