www.webdeveloper.com
Results 1 to 3 of 3

Thread: Another white space problem...

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    85

    Another white space problem...

    Code:
    <table align="center" width="900" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td colspan="2">
    
    <img src="images/banner.jpg" alt="GML Design Group Banner, Residential Custom Homes, Condominium Design, and Land Planning" width="900" height="135">
    
    </td>
    </tr>
    
    <tr>
    
    <td bgcolor="#d9d9a5" width="225" height="500" valign="top">
    
    </td>
    
    <td bgcolor="#526a6e" width="675" height="500" valign="top">
    
    </td>
    
    </tr>
    </table>
    There is a white space between the first and the second row in IE, but not in Firefox... Where would i put "style="margin:0"? I tried in the img tag, table tag, tr tag, and td tag. Or what do i have to do to get rid of this?

    Thanks for the help

    EDIT: Ok...i didn't realize that having spaces in the code, would mess with the output...that is annoying...I fixed it though...deleted the spaces between the <td><img src="images/banner.jpg" alt="GML Design Group Banner, Residential Custom Homes, Condominium Design, and Land Planning" width="900" height="135"></td>...IE is retarded!
    Last edited by Wej; 06-12-2008 at 07:41 PM.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,528
    You could assign a style="display:block;" to the <img> tag so that it is not treated as an in-line element where white-space matters.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Dec 2005
    Location
    American, living in Toronto, ON. CANADA
    Posts
    6,746
    And if it is table-related, possibly table-collapse:collapse; (have not tried this for your posted example code, but this removes 'default space' in TD/TRs etc.)

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