Re: Urgent: table bug: setting cell properties doesn't override table Class setting

  •  09-01-2007, 11:46 AM

    Re: Urgent: table bug: setting cell properties doesn't override table Class setting

    Update on this issue:
     
    I read through the W3C guidelines on CSS and it appears that the author's style settings always take precedence over the reader's settings. In other words, in a situation like this:
     
    <style type="text/css">
    table.sample td {
    padding-bottom: 0px;
    width: 150px;
    padding-top: 0px;
    text-align: left;
    vertical-align: top;
    align: left;
    }
    </style>
     
    <table class="sample" style="font-size: 12px; font-family: Verdana" cellspacing="0" cellpadding="0" width="500" border="0">
        <tbody>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td align="right">4</td>
            </tr>
            <tr>
                <td>5</td>
                <td>6</td>
                <td>7</td>
                <td>8</td>
            </tr>
        </tbody>
    </table>
     
    The table will always take the td specifications in the style settings.
     
    So in our problem we need a way to set the defaults of the <td> tag the same way we can set the defaults of the <table> tag in constants.js...
     
    Any thoughts on this?
    FredD
View Complete Thread