Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8125769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:55:24+00:00 2026-06-06T06:55:24+00:00

I am trying to make a plugin for WordPress. It works great, except when

  • 0

I am trying to make a plugin for WordPress.

It works great, except when i load the default WordPress themes. e.g. “twentyeleven.”

This theme has a DOCTYPE as shown below. And hence, no matter what I do, it always inserts this annoying GAP when i put an image in a table.

Please Help!
How do I get rid of this gap?

Below is some code. Anytime a table is placed in a situation in which the DOCTYPE is defined as it is here, then I get this gap.

The WordPress default themes seem to use this DOCTYPE declaration. So they BREAK my pretty plugins…

<!DOCTYPE html>

<body>

<table border="1" style="border-collapse: collapse;">
    <tr>
        <td width="100%">
            <img border="0" src="http://goo.gl/PJdRU">
        </td>
    </tr>
</table>

</body>

</html>

All browsers render the above code as shown below. I just want to REMOVE the Gap! Thanks!

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:55:27+00:00Added an answer on June 6, 2026 at 6:55 am

    There are several solutions, but neither is perfect. I guess the easiest will be just change your img’s style – in CSS (with td img { display: block } rule) or just an inline style, like this:

    <img style="display:block" border="0" src="http://goo.gl/PJdRU">
    

    Here’s an article with explanations why you see what you see – and several possible ways of fixing it. ) And here’s a working JSFiddle to play with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to make this to be a little jQuery plugin that
I am trying to add this code, generated by a WordPress plugin, to the
I'm producing a child theme for wordpress. I'm trying to make it as fool
I have used this plugin http://wordpress.org/extend/plugins/wp-featured-content-slider/ in my web page. It works fine. But
Im trying to make a pager for my image cycling using this plugin: http://jquery.malsup.com/cycle/pager3.html
Hi I'm trying to write my first Wordpress plugin. I'm using classes to make
When trying to activate my plugin, wordpress comes up with this error: Plugin could
I am trying to make the Validation plugin work. It works fine for individual
I'm trying to install a jquery plugin but i cannot make it work. This
I'm trying to make this jquery plugin => http://leandrovieira.com/projects/jquery/lightbox/ work with multiple galleries on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.