homepage Welcome to WebmasterWorld Guest from 54.204.68.109
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
Netscape 4 rendering half an image
css seems to be the bug
tedster




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

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?

 

mivox




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

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.

papabaer




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

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

Thanks!

mivox




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

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... ;)

tedster




msg:1210061
 9:11 pm on Apr 18, 2002 (gmt 0)

Thanks, mivox - make note: DON'T SET LINE-HEIGHT IN THE BODY TAG! At least not in the NN4 stylesheet.

papabaer




msg:1210062
 9:16 pm on Apr 18, 2002 (gmt 0)

Come on... Mivox, Tedster, I'm buyin' the first round! ;)

mivox




msg:1210063
 9:24 pm on Apr 18, 2002 (gmt 0)

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?

papabaer




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

:) Absolutely!!!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved