+ Reply to Thread
Results 1 to 4 of 4

Thread: Extra horizontal space- div/table/image within <td>

  1. #1
    marvso is offline x10Hosting Member marvso is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    57

    Extra horizontal space- div/table/image within <td>

    I seem to have a spacing problem in Internet Explorer. In FireFox, www.mario-vs-sonic.co.cc/index1.php displays fine, but in IE the navigation bar gains A LOT of extra space.

    Code:
    #side {
    
    background: url(http://i41.tinypic.com/1knt4.png);
    background-color: cc00000;
    overflow: hidden;
    padding-top: 1px;
    padding-right: 1px;
    padding-left: 1px;
    }
    Code:
    <td bgcolor="#000099"valign="top"id="side"><center><img style="width: 160px"alt=""src="1nav.jpg"width="160"height="30"/></center>HOME</td>
    I've moved around the carriage return of the </td>, I've reset the width for #side multiple times, I've set #side's margin to 0... but nothing seems to work. This isn't just a problem with the image, either: if I try to add a table or div into the td, then the same thing happens.

    Does anyone know the problem (other than the fact I'm using tables in 2010)? Thanks for any help.

  2. #2
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: Extra horizontal space- div/table/image within <td>

    Wrong section

    ***Moved to Programming Help***
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  3. #3
    Hello71 is offline x10Hosting Member Hello71 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    14

    Re: Extra horizontal space- div/table/image within <td>

    This should fix all your problems: http://validator.w3.org/check?uri=ht...Inline&group=0

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Extra horizontal space- div/table/image within <td>

    Last edited by misson; 05-05-2010 at 05:11 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 04-02-2010, 07:51 AM
  2. MysQL Query for Master table & child table
    By phpasks in forum Programming Help
    Replies: 8
    Last Post: 08-07-2008, 08:07 AM
  3. Need a space for image storage
    By vijaidhas in forum Programming Help
    Replies: 5
    Last Post: 05-22-2008, 05:26 PM
  4. Table left, image right.
    By Fedlerner in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 08-20-2006, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers