HTML col element being stripped

  • Unknown's avatar

    I have a post featuring a table with three differently colored columns. I used three col elements with CSS background-color properties to set the colors of the three columns.

    When I insert the code in Text mode, save changes, and view the page, the columns have the background colors I specified; however, if I edit the page again in Text mode, the col elements are gone.

    I know WordPress.com strips disallowed code, so I consulted the WordPress.com Support Article on Code to see if col is allowed. It is! So why is it being stripped?

    Here is the code that is being stripped each time I edit the page:

    <col style="background:#CFC;color:Black;width:10%;" />
    <col style="background:#CFF;color:Black;width:10%;" />
    <col style="background:#FCF;color:Black;width:80%;" />

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    If you want to make tables in WordPress.com, read this post:

    Table coding for wordpress.com users

  • Unknown's avatar

    Hi, galois. I do appreciate your taking the time to read and respond to my post.

    I searched the forums before I posted my issue and saw that someone posted the same issue on June 24, 2014 and got the same answer from timethief. I read the reference, and it describes using the col element.

    Yet the problem remains. WordPress is stripping col.

  • The topic ‘HTML col element being stripped’ is closed to new replies.