cory_r — 2010-06-03T03:51:51-04:00 — #1
In Webkit and Opera a background image doesn't fully expand to it's height like it does in Firefox and IE, it only remains behind the content.
The table cell styled with the following properties appears to expand its height fully to the tip of the previous table cell that has the background image applied.
border-top: 0 !important;
I'm using ZetaBoards, a free forum provider, so these elements are default.
stomme_poes — 2010-06-03T08:56:27-04:00 — #2
Sorry Cory, could you provide more code? I don't even see a background mentioned in the code posted above??
Why is there a cell if its height is being set to 1%?
I'm totally not familiar with ZetaBoards. You should post a bit of example HTML of the area in question.
ryanreese — 2010-06-04T09:26:52-04:00 — #3
You're welcome! GLad it worked.
ryanreese — 2010-06-04T00:00:50-04:00 — #4
Hi, tables are only meant to shrinkwrap to the content, Assuming the pink image is the image we are talking about..
Background images have no influence on the height/width of the element. They only fully show/show how yo uwant if the width/height is correct.
You need to set a height on the <td> (or a min-height) (as I said earlier )
cory_r — 2010-06-03T10:50:08-04:00 — #5
There's an example.
I'm sure you two have developer tools to mess with the CSS, so have fun.
stomme_poes — 2010-06-03T10:37:30-04:00 — #6
Something about teh 1% height cell covering the other cell who does have the image... that's what I need to see what's going on.
ryanreese — 2010-06-03T10:07:35-04:00 — #7
Hi, as Stomme mentioned..no image there
You could set a min-height on the table cell to relect the height on the image
cory_r — 2010-06-03T11:43:44-04:00 — #8
Just about. Our image is 193 pixels in height, that image is 200 pixels high.
stomme_poes — 2010-06-03T11:28:23-04:00 — #9
Is the pink testing area where the bg image would be on the live site?
cory_r — 2010-06-04T02:12:19-04:00 — #10
I tried it before and it didn't work, so I must have been doing something wrong. But it works now, so thanks!