On 9/25/05 11:32 PM, "Tina Clarke" <[EMAIL PROTECTED]> wrote:

> Please could someone tell me how to put cell spacing in a sheet? How do you
> write it out? I've been fiddling around and can't figure it out. I'm trying
> to change a html template over to a sheet for the formatting of the tables.
> (can't use divs in this instance)

1. Simple table HTML:
---------------------
<table>
    <tr>
        <td>stuff here</td>
        <td>more stuff here</td>
    </tr>
    <tr>
        <td><img src="../image.jpg" class="photo-style-01"></td>
        <td>more stuff here</td>
    </tr>
</table>



2a. Give the table an ID:
------------------------

<table id="style-me">
    <tr>
        <td>stuff here</td>
        <td>more stuff here</td>
    </tr>
    <tr>
        <td><img src="../image.jpg" class="photo-style-01"></td>
        <td>more stuff here</td>
    </tr>
</table>



2b. Apply styles:
-----------------

/* table styles */
#style-me td {
    margin: 4px;
    padding: 0;
    }
#style-me td.photo-style-01 img {
    padding: 0;
    margin: 4px;
    }

Also, see the Wiki:
http://css-discuss.incutio.com/?page=NicerTables

And here:
http://css-discuss.incutio.com/?page=StylingColumns
 


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to