PDA

View Full Version : Storing CSS StyleSheets as Files Option Issues with IE


ZomgStuff
02-18-2009, 04:46 PM
Anyone have problems with setting CSS Stylesheets to be stored as files in /clientscript/ with IE?

If I set it to files, IE7 has issues rendering the CSS, but FF works perfectly fine.

Here is what it looks like when I set CSS to save as files
http://img403.imageshack.us/img403/2931/66521533tr9.png

And yes, I have CHMOD'd 777 the appropriate folder.

snakes1100
02-18-2009, 04:57 PM
Did you clear your browser cache/temp internet files folder and restart IE?

ZomgStuff
02-18-2009, 05:03 PM
Yes, I've cleared all cache/history, and still the same thing.

I'm also not the only person to have this issue, and apparently the problem persisted even on IE7.

Edit:

I did some playing around, and looks like the default vBulletin skin works just fine, along with a secondary skin that we have. The issue is only with the primary skin, any idea what could cause this?

nexialys
02-18-2009, 05:11 PM
it is simple... the CSS have a direct path with the image in the background of the field, but when you store the css in file, the path changed... you have to verify the "url(thispath/image.gif) stuff and make it go direct to the proper place.

snakes1100
02-18-2009, 05:12 PM
As thats a custom skin, you should ask the person who coded it, there could be a reasons that skin cant store the css as files.

You can check your servers error log for a reason why as well.

ZomgStuff
02-18-2009, 05:14 PM
it is simple... the CSS have a direct path with the image in the background of the field, but when you store the css in file, the path changed... you have to verify the "url(thispath/image.gif) stuff and make it go direct to the proper place.

But why then would it not work in IE, and work perfectly fine in FF? Difference ways of rendering/retrieving css? Also, the poll thread td and sticky thread td are no images, just colors.

nexialys
02-18-2009, 05:15 PM
yeap...

--------------- Added 1234984732 at 1234984732 ---------------

example: your actual CSS have:
url(../../images/techtwo/misc/table1.gif)
.. IE does not like the ../../ stuff... FF already handle them properly.

change your CSS details to this:
url(http://forum.zomgstuff.net/images/techtwo/misc/table1.gif)

and everybody will be happy

the TD with color is because they all have a color of background set... it's the image url that IE is not reading likely.

ZomgStuff
02-18-2009, 05:23 PM
yeap...

--------------- Added 1234984732 at 1234984732 ---------------

example: your actual CSS have:
url(../../images/techtwo/misc/table1.gif)
.. IE does not like the ../../ stuff... FF already handle them properly.

change your CSS details to this:
url(http://forum.zomgstuff.net/images/techtwo/misc/table1.gif)

and everybody will be happy

the TD with color is because they all have a color of background set... it's the image url that IE is not reading likely.

I did that, but it didn't seem to change anything. I even included single quotes ('), and deleted cache.

the TD with color is because they all have a color of background set... it's the image url that IE is not reading likely.
What do you mean? It's just a hex color for the background color, why would it need an image url?

nexialys
02-18-2009, 05:33 PM
I did that, but it didn't seem to change anything. I even included single quotes ('), and deleted cache.
you changed it now, it is in the dB, and it shows properly... but the url() have no domain, so if it works that way, maybe it's the path, as i said...

What do you mean? It's just a hex color for the background color, why would it need an image url?

i was refering to the ones with background images...

ZomgStuff
02-18-2009, 05:41 PM
you changed it now, it is in the dB, and it shows properly... but the url() have no domain, so if it works that way, maybe it's the path, as i said...



i was refering to the ones with background images...

Hm, even the ones with background images seem to have had no effect when I completed the url() tags properly.:confused:

nexialys
02-18-2009, 05:55 PM
strange behavior then.... zzz

Lynne
02-18-2009, 07:02 PM
Link to your site?

snakes1100
02-18-2009, 07:43 PM
post #7 lynne

forum.zomgstuff.net

Lynne
02-18-2009, 08:14 PM
post #7 lynne

forum.zomgstuff.net
Um, well, uh..... again, I am wondering where that smilie is that whacks me upside the head! (Although, he has the style sheets back inline, so I can't see the problem 'in action'.)

You might want to read up on the css propery opacity (http://www.w3schools.com/Css/css_image_transparency.asp). The css call is different for firefox than for IE. Get that corrected, and I'll bet the problem is fixed. :cool: