Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 10-18-2007, 09:10 AM   #1 (permalink)
Junior Member
 
Join Date: 10-18-07
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

mattselley is liked by many
Whitespace in IE

In my forum, i have created a header graphic that 'stretches' the page width, no matter how wide the viewers screen is. This is using three seperate images, a left img, right img and a center img 1px wide that is set to 100% to fill the 'gap between the two. This all works very well...

untill now...

I have changed the left img, to include two links that i have created using slices with fireworks 2004. I have exported the html as 'single table - no spaces' and put this in with my other two images. Now when it is viewed in Explorer there is a strange whitespace between the center img and right img about 3px wide.

I have played around with the code and just cant remove it, this is only a problem in IE as Firefox is displaying the page correctly



Any help or ideas would be great
Code:
[<html> <head> <title>tab.jpg</title> <meta http-equiv="Content-Type" content="text/html;"> <!--Fireworks MX 2004 Dreamweaver MX 2004 target. Created Mon Oct 15 13:50:02 GMT+0100 (GMT Daylight Time) 2007--> </head> <body bgcolor="#f5f5ff"> <table border="0" cellpadding="0" cellspacing="0" width="600" align="left" > <tr> <td rowspan="2"><img name="tab_r1_c1" src="http://www.itsalifestyle.co.uk/header/ tab_r1_c1.jpg" width="200" height="89" border="0" alt=""></td> <td><table align="left" border="0" cellpadding="0" cellspacing="0" width="400"> <tr> <td><table align="left" border="0" cellpadding="0" cellspacing="0" width="200"> <!-- SLICE 1 --> <tr> <td><a href="http://www.itsalifestyle-toybox.co.uk" target="_self"><img name="tab_r1_c2" src="http://www.itsalifestyle.co.uk/header/ tab_r1_c2.jpg" width="200" height="40" border="0" alt=""></a></td></tr> <tr> <td><img name="tab_r3_c2" src="http://www.itsalifestyle.co.uk/header/ tab_r3_c2.jpg" width="200" height="1" border="0" alt=""></td></tr></table></td> <td><table align="left" border="0" cellpadding="0" cellspacing="0" width="200"> <tr> <td><img name="tab_r1_c3" src="http://www.itsalifestyle.co.uk/header/ tab_r1_c3.jpg" width="200" height="1" border="0" alt=""></td></tr> <!-- SLICE 2 --> <tr> <td><a href="http://www.itsalifestyle-movies.co.uk" target="_blank"><img name="tab_r2_c3" src="http://www.itsalifestyle.co.uk/header/ tab_r2_c3.jpg" width="200" height="40" border="0" alt=""></a></td></tr></table></td></tr></table></td></tr> <tr> <td><img name="tab_r4_c2" src="http://www.itsalifestyle.co.uk/header/ tab_r4_c2.jpg" width="400" height="48" border="0" alt=""></td></tr></table> <!-- CODE FOR CENTER IMAGE AND RIGHT IMAGE --> <tr> <table border="0" cellpadding="0" cellspacing="0" align="left"> <td height="89" width="100%" style="background-image: url(http://www.itsalifestyle.co.uk/header/tabcenter.jpg);" align="left" border="0"/></td> <td width="350" height="89" align="left" border="0" valign="top" ><img src="http://www.itsalifestyle.co.uk/header/tabright.jpg" width="350" height="89" border="0" align="left" ></td></table></tr> </body> </html>
Attached Thumbnails
Whitespace in IE-whitespace.png  
mattselley is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-18-2007, 09:31 AM   #2 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Your code in IE 7 (view attachment)



I see no white space in there...
Attached Thumbnails
Whitespace in IE-preview.jpg  
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-18-2007, 09:41 AM   #3 (permalink)
Junior Member
 
Join Date: 10-18-07
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

mattselley is liked by many
very strange, im running IE7 too and still seeing the problem even after deleting history etc.

Its obviously a problem with my machine, so il look further into it.

thanks for the reply, that was extremely helpfull
mattselley is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-18-2007, 10:21 AM   #4 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order


One more thing, though:

Code:
<!-- CODE FOR CENTER IMAGE AND RIGHT IMAGE --> <tr> <table border="0" cellpadding="0" cellspacing="0" align="left"> <td height="89" width="100%" style="background-image: url(http://www.itsalifestyle.co.uk/header/tabcenter.jpg);" align="left" border="0" /> </td> <td width="350" height="89" align="left" border="0" valign="top"> <img src="http://www.itsalifestyle.co.uk/header/tabright.jpg" width="350" height="89" border="0" align="left"></td> </table> </tr>
^^ right at the bottom of your code

Wrap the table in a td:
Quote:
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" align="left">
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Whitespace Remover theChronic Web Design Lobby 5 05-11-2006 03:35 PM
Whitespace on posts with Word Press BingoBalls Blogging Forum 2 04-25-2006 06:45 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:12 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.