dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Space after Image in IE. Please Help!

  1. #1
    Join Date
    Aug 2011
    Posts
    8

    Space after Image in IE. Please Help!

    Capture.jpg

    Attached is a screenshot of my site, http://bit.ly/UYkWX6. I've just added the image logo on the top there and it looks fine in Firefox and Chrome, but it adds that line at the bottom in IE.

    Here is my code...

    CSS...
    .logo {
    border:0;
    margin:0;
    padding:0;
    display:block;
    }

    HMTL...
    <td align="left" cellspacing="0" height="128" style="margin:0"; cellpadding="0" border="0" class="logo">
    <a href="http://www.facebook.com/"><img src="/assets/images/DesignComponents/logo-2.jpg" border="0"></a>
    </td>


    Any ideas?

  2. #2
    Join Date
    Mar 2011
    Posts
    1,156
    You probably need to apply your CSS margin and padding 0px settings to the <img> tag instead of the <td> tag's class. Without seeing the code for the entire page, it's impossible to be sure.

  3. #3
    Join Date
    Aug 2011
    Posts
    8
    It won't let me post that many characters here, but you can go to the site and view the source code.

  4. #4
    Join Date
    Jan 2011
    Posts
    123
    try correcting this
    ...signComponents/disc-golf-station-logo-2.jpg" height=128 cellpadding="0" cellspacing="0"></A> </TD>

    to

    ...signComponents/disc-golf-station-logo-2.jpg" height=128 cellpadding="0" cellspacing="0"></A></TD>

    Tip
    images are the same as letters, if you put a white-space behind and there is not enough space for both to fit in, one of them will break into a new line.

  5. #5
    Join Date
    Aug 2011
    Posts
    8
    Well I'll be durrned. It worked.

    Thanks Troy!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles