specifying column width in tables

  • Unknown's avatar

    Hi there,

    I am trying to create a table with three columns of equal width.

    I have used the following HTML: <col span=”3″ style=”width:33.33%;” />

    It works when I first save the page. However, when I return to the visual editor the above code has disappeared and when I resave my table, the width of the columns change…

    Is there anyway to restrict the width using HTML or CSS? I don’t mind using CSS and having it apply to tables throughout the site…

    Many thanks!

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

  • Unknown's avatar

    Hi there, can you give me the title of the page or post where you are trying to do this (I can see your drafts) and I would be more than happy to help you out.

  • Unknown's avatar

    If this is what you’re adding via HTML:

    <col span="3" style="width:33.33%;" />

    Then you could target it with CSS like this:

    col {
    	width: 33%;
    }

    If you need help with something more specific, please include a link to a post or draft showing the content you’re working with.

  • The topic ‘specifying column width in tables’ is closed to new replies.