Click to See Complete Forum and Search --> : Background-repeat "File not Found"
Sylvan012
09-26-2007, 04:20 PM
Hey there, all,
I'm trying to help out a colleague at work, today, by trying to see where a certain server error is coming from. We're apparently getting an error with "background-repeat" lines in CSS where the style in question is looking for a specific image. I believe that it's not finding it in some rare cases (possibly only on Mac IE 5) but nothing else.
I'm curious if anyone's heard anything about CSS implementation on this old browser and whether or not there was a problem with background-repeat implementation.
A brief Google search didn't yield any results so I figured I'd drop a note here and see if it conjured up any interesting discussion while I head back to search some more.
Thanks in advance!
Yours,
Dave
WebJoel
09-26-2007, 04:28 PM
"background-repeat", "background-repeat: repeat;" or "background: #fff url(name.jpg) repeat"?
Seeing some example code would help.:)
Sylvan012
09-26-2007, 04:31 PM
"background-repeat", "background-repeat: repeat;" or "background: #fff url(name.jpg) repeat"?
Seeing some example code would help.:)
Sure Joel!
As it is, the code's pretty rock-solid. Here's what I've found so far:
#content .bggray{
width:536px;
border-width: 0;
background-image: url(XXPathToImageXX/bg_01_bottom.gif);
background-repeat: no-repeat;
background-position: left bottom;
}
WebJoel
09-26-2007, 06:52 PM
I'm finding alot of information regarding the bugs with IE5-on-MAC
For instance: if you created a link to an external file that has nothing in it, such as:
<link rel='stylesheet' type='text/css' href='css/print.css'
media='print' />
the browser will 'hang'. Solution is to either put *something* in the file, or comment-out until there is actually something to put in the file..
Here are four examples: the second one is maybe what you are experiencing?
http://www.tjkdesign.com/articles/msie5mac.asp (Background—painting bug caused by floats (v5.0))
Sylvan012
09-27-2007, 08:18 AM
I'm finding alot of information regarding the bugs with IE5-on-MAC
For instance: if you created a link to an external file that has nothing in it, such as:
<link rel='stylesheet' type='text/css' href='css/print.css'
media='print' />
the browser will 'hang'. Solution is to either put *something* in the file, or comment-out until there is actually something to put in the file..
(more pending...)
Hmmm... No external style in this case; just a sheet contained in the header of the document.
However, a co-worker of mine (in Japan) thinks she has stumbled across something. If it works, I'll post the solution, here, so everyone knows...
Yours,
Dave
WebJoel
09-27-2007, 08:46 AM
That would be interesting to know.
paulthebassguy
09-30-2007, 03:26 AM
Hi,
Yeah I am getting a similar error.
I am writing an aspx application with master pages, and the "file not found" error happens after the master page load event is fired, but before the actual page event is fired. The background repeat that i have is on the master page.
It only happens in safari. Opera, firefox, and IE all work fine. In addition, the only way that I know that this is happening is becuase the visual studio debugger is picking up on it, but when the debugger is not attached the error isn't apparent, and the page renders correctly. It's still concerning though. Does anyone know what the reason for this weird thing might be?
Thanks
Sylvan012
10-02-2007, 11:46 AM
Ok, here's what we've found out:
The CSS was using secure, root-relative paths for it's images. In other words, if there was https://XXPathToFileXX/XXFileNameXX, the url was written "//XXPathToFileXX/XXFileNameXX" without the "https:".
What my co-worker in Japan found was that Mac IE5 does not load background images if you omit the "http:" or "https:" portion of the image path.
That's all it was!
Weird error...
Anyway, I hope that answers everyone's questions and documents it for future reference!
Yours,
Sylvan (Dave)
paulthebassguy
10-02-2007, 04:40 PM
hmm, yeah that's not the issue in my case as I'm using relative paths. The issue happens only in Safari, but I don't think the "File does not exist" error is referring to any image or css file because the page displays correctly, and all scripts work properly as well.
lol, It would be helpful if the error message actually stated the file it was looking for but no, that would just be too user friendly.