WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My tables stripped bare... (4 posts)

  1. billnanson
    Member
    Posted 7 years ago #

    Sorry if this might have been covered elsewhere, but tag stripping seems a big subject.

    I like to use the zebra approach
    http://www.alistapart.com/articles/zebratables/ to my tables and have noticed something really odd when adding content in the wordpress HTML source editor. A short example of the code lies at the end of these words.

    The wordpress HTML editor allows the first row with the class=selected2 tag, but all other rows with this same tag (ie every second row) is stripped - not the tag, but the whole row! So I end up with the desired colour for my top two rows, then half of the rows are missing and I have only 1 colour.

    I'm happy to post links as examples; here is a stripped version
    http://www.burgundy-report.com/wp/?page_id=83

    And here is a non-stripped, non-wordpress version
    http://www.burgundy-report.com/306/features/tollot.html

    Any ideas to fix are gratefully accepted
    Thanks, Bill

    <table id="T2" border="0" cellpadding="0" cellspacing="0" align="left">
    <tr class=selected2 style="font-weight: bold">
    <td>The Tollot-Beaut Crus</td>
    <td align="center">Hectares </td>
    <td align="center">Vines planted in...</td>
    </tr>
    <tr>
    <td>Corton-Charlemagne Grand Cru</td>
    <td align="center">0.2412</td>
    <td align="left">1965</td>
    </tr>
    <tr class=selected2>
    <td>Corton Bressandes Grand Cru</td>
    <td align="center">0.9121</td>
    <td align="left">1953, 1955</td>
    </tr>
    <tr>
    <td>Corton Grand Cru</td>
    <td align="center">0.6026</td>
    <td align="left">1930, 1985</td>
    </tr>
    </table>

  2. moshu
    Member
    Posted 7 years ago #

    If you are working with your own code - never turn on the wysiwyg animal.
    (admin > Users > Your profile: left bottom corner - uncheck)

    I can put whatever code I want in my posts, including tables, and they work. But I never enable that wysiwyg thing.

  3. billnanson
    Member
    Posted 7 years ago #

    98% better!
    Wierd formatting now appears in the form of a six-inch gap before my table appears (IE & Firefox) but at least it's now stripy and I'm sure I'll work it out eventually - despite there being nothing to indicate a space in the code - but hey...
    Thanks
    Cheers, Bill

  4. moshu
    Member
    Posted 7 years ago #

    I am really not a validation maniac... but whenever something isn't displaying as expected I am tempted to click on the validation link
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.burgundy-report.com%2Fwp%2F%3Fpage_id%3D83

Topic Closed

This topic has been closed to new replies.

About this Topic