ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Table troubles with spaces

September 17, 2008 1:07pm

Subscribe [2]
  • #1 / Sep 17, 2008 1:07pm

    tantau

    35 posts

    When adding code for a table into a weblog entry, large white spaces are added above and below the table. These spaces disrupt the flow of the page. Has anyone else experienced this problem, and were you able to find a solution to it?

    My table HTML code is pretty standard:

    <table>
      <tr>
         <td> </td>
         <td> </td>
         <td> </td>
      </tr>
    
      <tr>
         <td> </td>
         <td> </td>
         <td> </td>
      <tr>
    </table>
  • #2 / Sep 17, 2008 1:44pm

    Jason Morehead

    456 posts

    Make sure that you’ve set the text formatting on the field in question to “None”. If it’s set to the other options—“Auto
    ” or “Xhtml”—than EE will automatically convert any of the linebreaks in your table code. Hence all of the extra whitespace.

    If you can’t change the text formatting—perhaps because there’s other content in that field that needs the auto-formatting—than you’ll have to remove all of the linebreaks from your table code, essentially putting it all on one line.

  • #3 / Sep 17, 2008 5:08pm

    tantau

    35 posts

    RESOLVED! You were on the nose with that one Opus! I changed the formatting in the weblog entry to “none” and the spaces collapsed.

  • #4 / Sep 17, 2008 5:24pm

    Jason Morehead

    456 posts

    Glad it worked for you. That really threw me for a loop until I remembered a similar situation on another CMS that I used.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases