i cant use cellpadding of a table inside the <table> tag. it doesn’t show any padding even though i use
<table width="550" border="0" cellpadding="3" cellspacing="0" bgcolor="#000000">
but when i use (using styles)
<table width="550" border="0" cellspacing="0" bgcolor="#000000 " style="padding:3px;">
it works fine.
can anyone give me a solution for this. because for some reasons, i cant use Styles inside <table> tag.
MODx Development
Windows, Photoshop CS3, Dreamweaver CS3, Flash, PHP 5.2, MySQL 5.0, Evo 1.0.x, Firefox 4, Chrome 8, IE 8, Opera 10
Have you actually specified any cells yet? The style padding in <table> tag will only give you padding around the edge of the whole table, not the cells themselves.
<table width="550" border="0" cellpadding="3" cellspacing="0" bgcolor="#000000">
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
</table>
Mostly harmless.
i wanted a single cell table with cellpadding 3px and put another table inside it..
MODx Development
Windows, Photoshop CS3, Dreamweaver CS3, Flash, PHP 5.2, MySQL 5.0, Evo 1.0.x, Firefox 4, Chrome 8, IE 8, Opera 10
Then you’d need to do this:
<table width="550" border="0" cellpadding="3" cellspacing="0" bgcolor="#000000">
<tr>
<td>Cell</td>
</tr>
</table>
Without knowing exactly what you’re doing, why don’t you simply wrap the table in a div?
<div style="background-color: #000; padding: 3px; width: 550px;">
<table>
<tr>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
</table>
</div>
Mostly harmless.
i tried 1st method,but modx didn’t show any paddings. and im not allowed to use <div> tags as mentioned in 2nd method.
MODx Development
Windows, Photoshop CS3, Dreamweaver CS3, Flash, PHP 5.2, MySQL 5.0, Evo 1.0.x, Firefox 4, Chrome 8, IE 8, Opera 10
i tried this several times. but didn’t work. it shows only inner table. cant see the outer table...
MODx Development
Windows, Photoshop CS3, Dreamweaver CS3, Flash, PHP 5.2, MySQL 5.0, Evo 1.0.x, Firefox 4, Chrome 8, IE 8, Opera 10
Works for me. What browser are you using?!
Mostly harmless.
it is not working with firefox n chrome but IE.
MODx Development
Windows, Photoshop CS3, Dreamweaver CS3, Flash, PHP 5.2, MySQL 5.0, Evo 1.0.x, Firefox 4, Chrome 8, IE 8, Opera 10
Hmmm hard to say as I don’t know what else is involved with your page. Only other thing I can think of is if the page is linked to a reset css file then perhaps there’s a style collapsing the table.
Mostly harmless.