Originally Posted by DesignsbyPam
Thanks again for the help! One more question then I'm off to give things a try.... what about backgrounds for a cell or table?
Pamela
|
You simple attach the style to the table/table cell
Example if inline styles
HTML Code:
<table>
<tr>
<td style="background: #fff url(images/image.png) repeat-x 0 0;">
My text
</td>
</tr>
</table>
Or, if your table/cell has a class or id attached to it, simple add the background attribute to the CSS for that class/id or you can even attach the background attribute to the td tag within the CSS itself:
The HTML
HTML Code:
<table>
<tr>
<td class="myBg">
My text
</td>
</tr>
</table>
The CSS:
Code:
.myBg
{
background: #fff url(images/image.png) repeat-x 0 0;
}
Originally Posted by Aphex
I've never seen that before, thats really neat. I'd also like to mention the PNG behaviors on that page - thats worth looking at. IE sucks with PNG.
|
IE does suck with partial transparency on PNG's...I wish they would fix that already :/