• I have a CSV file that I took to a CSV to HTML converter, then cut and pasted the code into my site. The issue is that the table is just so wide that it extends into my sidebar and off the screen. But when I try to change the TD width, nothing happens. Any tips or something I need to do in my style sheet to fix the problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you copy & paste from Microsoft applications code is transferred that overrides the style rules of your site. There are icons for pasting from Microsoft applications but even those don’t strip out all the code. You could use search & replace in a good editing program to replace all of the commas with </td><td> and all of the line breaks to </td></tr><tr><td> then you would have to add the first <tr><td> and the last </td></tr> and then you could copy & paste all of that into your site with the editor in HTML mode.

    There are also plugins that make it easier to work with tables in WordPress.

    Thread Starter hitman200x

    (@hitman200x)

    Wait, so if I am in Excel, and a CSV file, and I cut and paste that info and just paste it into the Editor, it can override the style rules of my site?

    Yes.

    Sorry I forgot to mention that you would also have to add the <table> and </table> tags before pasting it in.

    Thread Starter hitman200x

    (@hitman200x)

    Is there a certain thing I have to do in Excel? When I literally just cut and paste, no table shows up and there is nothing formatted.

    If you save it as a CSV file and then open it in an plain-text editor that has a good search & replace, you can do what I said above and then paste it in as HTML.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Tables in WordPress’ is closed to new replies.