/    Sign up×
Community /Pin to ProfileBookmark

IE6 Breaking my Tables with Image

Hi Everyone,

I’ve been banging my head trying to get my site compatible with the more popular browsers. The one that’s giving me quite a headache is IE6. Since pictures are worth a thousand words, here goes …

What it’s supposed to look like (FF2, FF3, IE7, Chrome, Safari all look like this):

[img]http://img224.imageshack.us/img224/4434/iesucks2ds8.jpg[/img]

What it looks like in IE6:

[img]http://img442.imageshack.us/img442/6813/iesucksao1.jpg[/img]

I suspect it is IE6 not respecting the table widths in the html. It bears noting that an image resizing script is being run. In the forums, that image is resized perfectly to the width of the forum. The page shown is driven by multiple php files which output to html pages. However the following is the shell html code which houses the main content area. I’ve truncated it here for reference:

[code]
<table cellpadding=”0″ cellspacing=”0″ border=”0″ width=”100%”>
<tr>
<td style=”width:2px;” valign=”top”></td>

<!– [+] center block area –>
<td valign=”top”>
<br style=”clear:both” />

<!– [+] THIS IS WHERE THE MAIN CONTENT & PHOTO WOULD GO –>

</td>

<!– [-] center block area –>
<td style=”width:4px;” valign=”top”> </td>

<!– [+] right block area –>
<td valign=”top” style=”width: {PORTAL_RIGHT_COLUMN}px; padding-left:6px;”>
<br style=”clear:both” />

<!– [+] THIS IS WHERE THE THE SMALLER MODULE BLOCKS WOULD GO –>

</td>
<!– [-] right block area –>
</tr>
</table>
[/code]

I have tried setting the table width =”800” as well including a style+”width:550px” in the td tags with little success. Fixing the widths reduces the content area and forces the image to resize accordingly. However, the spacing of the areas are still broken up as in the image above – the content area is just narrower. I hope that makes sense.

Any advice would be extremely appreciated.

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@KDLADec 10.2008 — Can you post your code? I'm thinking that this isn't a table problem, but associated with positioning/stacking.
Copy linkTweet thisAlerts:
@the_roninauthorDec 10.2008 — Hi KDLA,

Here is the code for that rendered page. Keeping in mind that page was generated through a number of php files and html includes. Thank you for any help you can provide.

[edit] The code is more than the allowable limit. I&#8217;ve sent you a pm so perhaps I can email the code you?

[edit2] Hmmm, I can't seem to find where the private message function is if there is one. If you'd like you can view the code at the site ... www.tribalsurf.net ... it is the same coding, the layout just gets broken up if an image is included as in the screenshots above.
Copy linkTweet thisAlerts:
@KDLADec 10.2008 — Instead, attach a txt file to your post with the code -- that's one workaround.

I believe the PM allowance is even less than the forum.
Copy linkTweet thisAlerts:
@the_roninauthorDec 11.2008 — Ah here you go then ...
Copy linkTweet thisAlerts:
@KDLADec 11.2008 — You've got a few tags that are unclosed, which could be contributing to the problem. (Post your code in the validator (http://validator.w3.org) to view specifics.)

You're using some floats within a table that lacks a definite width, which IE doesn't like.

Take a look here (http://www.webmasterworld.com/forum83/7297.htm) for some info. Beyond that, I'm not sure. None of the CSS was embedded in the txt file. What you might do, though, is to look to see if that navigation panel is positioned, rather than placed in the normal document flow.
×

Success!

Help @the_ronin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...