Results 1 to 5 of 5

Thread: (HTML) Cannot remove space under image. **Resolved**

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (HTML) Cannot remove space under image. **Resolved**

    I know there is probably a better way to do what I want rather than a bunch of tables but this is for an html email. My problem is that I need this table to touch this image to give the appearance they are one. The table above the image is fine but the table below is a few pixels lower than it should (like there is a <br> or something) be. The image is surounded by an <a> tag.
    Code:
    <table border="0" cellpadding="0" cellspacing="0" width="138" height="40" bgcolor="#de9c00"><tr><td></td></tr></table>
    <a href="http://www.blah.com" border=0 style="margin:0px;"><img src="blah.jpg" border="0"></a>
    <table border="0" cellpadding="0" cellspacing="0" width="140" height="40" bgcolor="#de9c00"><tr><td></td></tr></table>
    Thanks in advance,
    Michael
    Last edited by msimmons; Sep 16th, 2002 at 11:23 AM.
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Maybe try adding padding:0px as well as margin to the things you want affected?

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    No, that wasn't it either. The odd thing is that it is the trailing spaces not the leading ones... because the table before the image is touching it fine.... but the table after the image isn't.
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  4. #4
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    This seems to work and it's probably the best way to do it.

    Code:
    <div style="background-color:#de9c00; height:40px; width:138px;"></div>
    <div style="margin:0px; border:0;"><a href="http://www.cheese.com" border="0"><img src="http://www.cheese.com/images/front_rg2.gif" style="margin:0; border:0;" border="0"></a></div>
    <div style="background-color:#de9c00; height:40px; width:138px;"></div>
    Although, if you still want to use your way it works too.

    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  5. #5

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Originally posted by punkpie_uk


    Although, if you still want to use your way it works too.

    Your way works great thanks

    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

Posting Permissions

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



Click Here to Expand Forum to Full Width