SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Aug 2005
    Location
    Belgium
    Posts
    387
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    remove space between table and image

    hey
    i have a table rght under an image, but i don't want there to be any space between them.
    I already have margins and paddings to 0
    this is the code:
    Code:
    <div id="leftcol" ><img src="images/big_content_space.gif" alt="space" style="margin-bottom:0px; display:block;padding-bottom:0px;" />
    <table class="content_table">
    	<tr>
    		<td class="content_head">&nbsp;</td>
    	</tr>
    	<tr>
    		<td class="content_main">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</td>
    	</tr>
    </table>
    			</div>
    and the css:
    Code:
    /*
    ---------------------------------------------------
    THE LAYOUT CONTENT
    ---------------------------------------------------
    */
    .content_table {
    	width: 540px;
    	margin-top: 0px;
    	padding-top: 0px;
    	}
    .content_head {
    	height: 20px;
    	background: url(images/content_head_bg.gif) repeat-x;
    	margin-top: 0px;
    	padding-top: 0px;
    	}

    Thanks

  2. #2
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe...
    Code:
    #leftcol img { 
    display:block;
    }
    (just a guess)


Bookmarks

Posting Permissions

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