Hmmm... HTML issue in Netscape 7
I'm hoping there's an HTML geek lurking around, because I have a real head scratcher.
I'm just mocking up some pages to get a feel for how they'll work in various browsers, but when I check <a href="http://dev.pixelsurgeon.com/new/reviews/index.html" target="_blank">this</a> page in Netscape 7 the background image vanishes. If you compare the page in both IE5.2 and NS7 you'll see what I mean.
The page uses the following code to create the background image:
\t<body background="../shared/images/bg_main.gif" bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
Which is fine as far as I can tell... the doctype is <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> because I know this can have a bearing on things, especially in Netscape.
I mean, the background image should work, right?
Apologies, I'm a designer, not a coder in case I'm missing something really obvious... any help much appreciated! <img src="graemlins/embarrassed.gif" border="0" alt="[Embarrassed]" />
I'm just mocking up some pages to get a feel for how they'll work in various browsers, but when I check <a href="http://dev.pixelsurgeon.com/new/reviews/index.html" target="_blank">this</a> page in Netscape 7 the background image vanishes. If you compare the page in both IE5.2 and NS7 you'll see what I mean.
The page uses the following code to create the background image:
\t<body background="../shared/images/bg_main.gif" bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
Which is fine as far as I can tell... the doctype is <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> because I know this can have a bearing on things, especially in Netscape.
I mean, the background image should work, right?
Apologies, I'm a designer, not a coder in case I'm missing something really obvious... any help much appreciated! <img src="graemlins/embarrassed.gif" border="0" alt="[Embarrassed]" />
Comments
[edit: I lied, I just realized I can answer your question. get rid of the bgcolor="#ffffff" that should help you.]
[ 10-20-2002: Message edited by: Stroszek ]</p>
<a href="http://dev.pixelsurgeon.com/new/bgtest.html" target="_blank">This new page</a> works with the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>Bastid Background Image!</title>
</head>
<body background="bgtest.gif">
<p></p>
</body>
</html>
So it's not the doctype or the <body background="bgtest.gif"> that's stopping it... and there's no fundenmental difference between the two pages.
It's just nuts. <img src="confused.gif" border="0">
Worth a check anyway.
edit:
I downloaded the first page, find & replaced all the relative urls with references to pixelsurgeon.com and switched the background image with the one from the second link.
It then worked in Chimera (which I assume is the same as Netscape 7 cos it uses Gecko too.)
[ 10-20-2002: Message edited by: stupider...likeafox ]</p>
I got it to work by attaching a style to the body tag and only tiling the image vertically. That way I could get away with a much narrower file.
It means that Netscape 4.7 users will be slightly left out, but do you know what? I say f**k 'em - they should be using a modern browser!
Thanks to Stroszek and Stupider... your time was much appreciated!
In your code, you say the DOCTYPE is HTML 4.01 Transitional... but you're not conforming to the assigned doctype. A lot of the attributes in your BODY element are not part of that specification.
You should really be building in XHTML 1.0 Transitional and using Cascading Style Sheets for doing things like setting margins in various elements. Believe it or not, a lot more browsers than you think will support that, and older browsers won't choke on the XHTML sntax either.
Just trying to make the web a happier place
As I mentioned earlier, I'm the designer not the coder for this job and what I was creating were mock-ups to demonstrate what the site would look like in NS7 and IE.
I'm sure when the pages are properly constructed, my crappy code will be discarded!
I'm familiar with XHTML, so I'll pass on your comments to the coder. Many thanks!
I had a quick look and think perhaps your .gif is shagged.<hr></blockquote>
I so want that as an error message from a browser... <img src="graemlins/lol.gif" border="0" alt="[Laughing]" />
[ 10-21-2002: Message edited by: Overhope ]</p>