View Single Post
  #7 (permalink)  
Old Apr 2nd, 2007, 15:17
Donny Bahama Donny Bahama is offline
Reputable Member
Join Date: Mar 2005
Location: Margaritaville (a state of mind somewhere between Inebriation and San Diego), CA
Posts: 236
Thanks: 4
Thanked 0 Times in 0 Posts
Re: Bug in IE display of td background image?

Quote:
Originally Posted by Lchad View Post
Code: Select all
<td colspan='8'><img src='img/frame-horiz-pinkneon.gif' height='18' width='436'
Your vertical pink neon graphic is 436px wide. That's why it's wide.
It's supposed to be. I guess some clarification is in order. This page is a simple message board, with alternate posts having alternating neon frames. Here's a screenshot of what it looks like (when rendered properly in FF):


Quote:
You really should be using div classes instead of tables. I'm not actually sure how you'd code a table cell with a flexible width.
While I've posted just a snippet of the html - which was all that was needed to demonstrate the problem, the actual page is dynamic (php) and is generated from a MySql database. The structure of each post would make using DIVs a nightmare, IMO, as I would need multiple layers of wrappers and would start to run into IE's float bug (and probably others). Still, if I can't get to the bottom of what's going on here, I may have no other choice.
Quote:
If you used div classes you'd have have just a snippet of that graphic as the div background and repeat-x. Then it would just fill up whatever the cell width is and not make it a mandatory 436 in width.
That's what I'm using for the side neon elements (only with repeat-y) and I think that's what IE is choking on. I don't need to use a div background with repeat-x since it's a fixed width table.
Reply With Quote