• Hi all,

    On a page on my website I added a table within the text. this all went fine, except now ther is a huge white space above the table. I did not put any < /br> elements in my html code, but according to Firebug they do exist. (as you can see on this picture where the code in the red box is part of my page html and the upper code is provided by firebug)

    As you can see, firebug shows that 6(!) < /br> elements are added!

    my question is: where can I find these or how can i get rid of them?

    Thanks so much in advance!

    Nick Meulenbroek

Viewing 12 replies - 1 through 12 (of 12 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I assume you’ve tried this, but just in case you haven’t, can you check the post in which the table resides. Check the HTML (sorry, probably not named HTML anymore) tab for any <br /> elements.

    Thread Starter nickmeul

    (@nickmeul)

    I write my posts and pages in the html tab, and I haven’t put any < /br> elements inbetween the text above the table and the table. that’s why i don’t know where they come from:)

    Thread Starter nickmeul

    (@nickmeul)

    Does anyone know what the problem is here, and how to solve it?
    Thanksss

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hello again, have you tried deactivating plugins to explore whether any are responsible? Then switching themes to Twenty Ten/Eleven/Twelve to determine whether it’s a theme-specific problem?

    Thread Starter nickmeul

    (@nickmeul)

    Hi,

    Thanks for your reply, yes i have tried both deactivating plugins and changing themes and this does not seem to cause the problem.

    WPyogi

    (@wpyogi)

    Did you copy the table from someplace else?

    Are you switching between the visual and text editors? That tends to cause problems.

    What happens if you remove them in the text editor and save those changes (don’t switch editors)?

    Thread Starter nickmeul

    (@nickmeul)

    Well i took the basic layout from a website yes.
    No I am not switching between the visual and text editors. I cannot remove them from the text editor because they don’t appear in the editor(s). That’s the strange thing.. they only appear after publishing.

    WPyogi

    (@wpyogi)

    Try copying it first into a plain text editor – make sure there are no extra tags or spaces, then copy to the text editor.

    Thread Starter nickmeul

    (@nickmeul)

    I copied it to an online html editor, and there the extra white space did not come forward. Also i copied it to a plain text editor and looked for extra tags and spaces, like you said, which i couldn’t find. so there must be something within wordpress which seems to cause the problem i guess?

    WPyogi

    (@wpyogi)

    Can you post (using a pastebin) the table code? I’ll try it on a test site. It’s unlikely WP – more people would have the problem…

    Thread Starter nickmeul

    (@nickmeul)

    Okay thank you!

    This is my table code:

    <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0px" bordercolor="white">
    <TR>
    <TD WIDTH="30%" VALIGN="top"><P STYLE="font-size: 14px;"></br>Profiterolles.</br></br>Brownie of Blondy.</br>Aardbeien genot.</br>American cookies.</br>Scones.</br>Appel/perenflap.</br>Cheesecake.</br></br></br></br></br>Sandwich zalm.</br>Sandwich komkommer.</br>Mini quiche.</br></br>Salade.</br></br>Wrapjes.</br></br>Muffins.</p></BR></TD>
    <TD WIDTH="3%"></TD>
    <TD WIDTH="67%" VALIGN="top"><i><P STYLE="font-size: 14px;"><strong>Zoete gerechten</strong></br>Soesjes gevuld met een creme van witte chocolade & slagroom.</br>Brownie van melk of witte chocolade.</br>Bladerdeegbakje met verse aardbeitjes en room.</br>Chocolate chip cookies, de enige echte!.</br>Onmisbaar bij een High Tea! Homemade Scones met clotted cream & een jam van kersen.</br>Appel of peren flapje, vers uit de oven.</br>Mini bosvruchten cheesecake met een bodem van bastogne koek.</br></br><strong>Hartige gerechten</strong></br>Kruiden roomkaas, gerookte zalm & een rood uitje.</br>Zoetzure komkommer, cherry tomaatjes & mozzarella.</br>Mini quiche met zongedroogde tomaat, pijnboompitjes & pesto.</br>Diverse huisgemaakte salades, bijvoorbeeld krab, tonijn of eiersalade.</br>Diverse soorten wraps, kruiden roomkaas & komkommer, carpaccio of zalm & bieslook.</br>Diverse soorten muffins, zowel zoet als hartig.</p></i></BR></TD>
    </TR>
    </TABLE>

    And as you can see on the uploaded images im my first post, the table code starts immediately after my normal text on the page..

    WPyogi

    (@wpyogi)

    Make sure the table code is valid – it’s not…

    https://validator.w3.org/

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Trouble with added element’ is closed to new replies.