Welcome to WebmasterWorld Guest from 54.159.179.132

Forum Moderators: not2easy

Message Too Old, No Replies

Netscape 4 rendering half an image

css seems to be the bug

   
6:44 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I'm trying to figure out a weird one.

I'm working on a new site and I had a page that was OK in all my test browsers - including NN4. Since this new client still shows about 35% Netscape 4 users in their logs (OUCH) it's a must.

Since it was basically OK, I began tweaking the typography: line-height and some paragraph top and bottom margins. But now when I went back to NN 4.7, the logo image was only half rendered - it stops part way down the image. Every other browser is still fine, but I can't make Netscape 4 render the whole gif.

Squirreliest thing I ever ran into. Has anyone else ever seen this?

6:54 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Yep. Turned out that the image was being truncated by my line-height specification. I'd assigned some CSS attributes to the <body> tag, including line-height: 16px... The image I was using got truncated 16px down from the top in Netscape.

Assigned my line-height declaration to #bodytext instead of <body>, and the problem went away.

Another possible solution might be to create an .img class, and give it a display: block attribute... or assign a disply: block attribute to the <img> tag itself, but I don't know if that will override the line-height declaration in NN... or perhaps cause layout problems otherwise.

8:37 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Great post Tedster, Mivox!
I really love it when I can find solutions to problems... before I experience the PROBLEMS!

Thanks!

8:54 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The CSS discussions around here lately have been an absolute treat for me and the time I used to spend troubleshooting. I'm just glad (for once!) to have contributed something helpful before you beat me to it and totally snowed me with your answer, papabaer... ;)
9:11 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Thanks, mivox - make note: DON'T SET LINE-HEIGHT IN THE BODY TAG! At least not in the NN4 stylesheet.
9:16 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Come on... Mivox, Tedster, I'm buyin' the first round! ;)
9:24 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member mivox is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Hehe... I'll meet you at the neighborhood bar tomorrow. That'll give you both a chance to catch a flight up here, if you leave right away.

Trial and error is more fun in groups, no?

9:28 pm on Apr 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



:) Absolutely!!!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month