• newitus

    (@newitus)


    Hi,

    There is a big gap between my first word and the table below on a Page. But I don’t have any extra html code between there. (even I took out the first line of words, my table still being push down so far with the big gap above) How would that be? Any solution would be greatly appreciated.

    I tried with different templates, but it returned the same. I asked my hosting (dreamhost). They don’t think it’s the problem from the latest php version 5.2.1 and should be related to WP latest 2.1.2 then.

    Please see at

    Thank you.

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter newitus

    (@newitus)

    Sorry on messing up with the link text.


    here is right

    macwise

    (@macwise)

    newitus,

    I downloaded your output source, and the information I gave you was incorrect. However, your p element is indeed collapsing. You can see by adding this to the p element that is encasing your table:

    change "<p>" to "<p style="border: solid 1px red;">"

    Here’s what worked for me:

    You currently have a “p” element encasing the table, and for some reason, that’s collapsing. Change this to a div element, and your problems disappear. Try this:

    <p>(Moving Blankets)</p>
    <div>
    <TABLE BORDER="1">
    <TR>....</TR>
    </TABLE>
    </div>

    Changing this to a div element causes the table to be housed correctly, and your collapse no longer occurs. Check out the validator page to see what other problems might be getting in your way:

    https://validator.w3.org/check?uri=http%3A%2F%2Fwww.movingpads.com%2Fproduct%2Fmoving-pads%2F

    Hope this helps!

    macwise

    (@macwise)

    BTW, the BR’s are a different issue. I was able to take them out of my version of your code, because I was working with static code, but you may still have issues with them. The solution above will at least get you on the way so when you can get the BR’s out of the way, you’ll be good to go.

    Thread Starter newitus

    (@newitus)

    Hi macwise,

    Adding the <div>...</div> doesn’t help. It’s not related to the p element. You could check at here

    Plus, the w3 validator states over 50 errors on my pages, starting on the “border” attribute doesn’t recognized. I don’t know what I should listen to.

    Thanks.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    The border attribute is not valid xhtml, and the way you’re using it is not valid HTML either. Still, that won’t cause the specific problem you’re talking about, which is why I didn’t mention it.

    Thread Starter newitus

    (@newitus)

    Hi Otto42,

    Can you please point me out a valid html table code sample?

    How do we submit request to fix this space bug for wpautop function?

    Thanks again.

    Thread Starter newitus

    (@newitus)

    Hi Otto42,

    You think this bug is related to my other support request?

    Thanks a lot.

    Thread Starter newitus

    (@newitus)

    Hi macwise,

    I have to update my demo page correctly this time.

    Thanks for helping along anyway.

    Root

    (@root)

    When you say your *first word* what do you mean? The header has a very big gap below it.

    Thread Starter newitus

    (@newitus)

    Hi Root,

    It’s all fixed with Otto’s help. The header gap is not related to what I asked. If you want to see the problem yourself, you could copy the first piece code I pasted here and put on a new WP 2.1.12 page.

    Here’s a simple solution to the problem that doesn’t require plugins or fancy hacks, but still lets you write code cleanly:

    https://www.jeremyduffy.com/computers-internet/wordpress-stuff/p_and_br_tag_fix_for_wordpress/

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Big gap from nowhere’ is closed to new replies.