Forum Moderators: not2easy

Message Too Old, No Replies

Background image causes td to collapse in Netscpae

IE and Netscape differences(problems!)

         

JaOtEaY

10:08 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



I have a table and in it there is a background image but nothing actually in my td. In IE it allows me to create a width and height and that is fine. But in Netscape since there is nothing actually in my td it ignores my height: and width: declerations, and collapses the column. Any idea on how to fix this?

DrDoc

11:00 pm on Dec 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

Well, you can always put something in the table cell, such as a  ...

BRBadger

6:26 pm on Dec 17, 2003 (gmt 0)

10+ Year Member



Hi, I'm spending some hard time trying to make buttoms with CSS, and I have the same problem. I mean: Free text, link applied and a style on it; the result in IE6 is the expected: bg image, actual text and hover effects( BG change and text-color . But when it comes to NS7, it just ignores the height I set, even though it keeps the right and left padding.

iamlost

9:25 pm on Dec 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In NN7 and Firebird 0.7 "height" is left undefined unless you

(1) use "position: fixed;" or "position: absolute;".
(2) use a definite value i.e. 100px or 1.25cm but not percentages.

OR:

You set:

html, body {width: 100%; height: 100%;}

so that they have a base point to work from.

Hope this helps.

DaScribbler

11:37 pm on Dec 17, 2003 (gmt 0)

10+ Year Member



(1) use "position: fixed;" or "position: absolute;".

Stick with 'absolute', if you use 'fixed' then IE will be broken.

iamlost

12:20 am on Dec 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Stick with 'absolute', if you use 'fixed' then IE will be broken.

I was giving what will work not recommendations of what to use.

However, I will say that on several sites I have developed I use "fixed" with appropriate IE conditionals (to get around the IE problem you mention) and it works great. There is a great thread on the subject here somewhere.