By autodidactic on
Hi guys,
I'm putting together a custom theme for a portfolio site and IE7 is not playin' ball. This theme renders fine in every other browser, but IE (currently testing IE7) is not loading the styles from the style sheet. I have tried taking the "?2" out of the
tag in the header. I have also cleared the cache in both the browser and under admin/settings/performance but no dice. I really don't know what the deal is here. In source view, the css links are showing up and there are only 17 so the >31 bug does not apply here. Below is a link to my site. If anybody can offer some guidance I would really appreciate it.
Comments
On the Performance tab
do you have "Optimize CSS files" enabled? Enabling this usually fixes IE css rendering.
Roxy
I tried that too and it
I tried that too and it didn't work. I'll give it another go though just in case.
Update: Just tried it again and same problem.
check whitespace in source or try this workaround
Howdy neighbor! I browsed your site, nice! I am reviewing the software's caching and performance of CSS and I have a few suggestions. When I view source, I see that one link statement has leading whitespace. This should be ignored per W3, but perhaps IE7 has a bug that interferes with CSS.
When I have/having problems with caching, in addition to disabling caching/refresh cache/CTRL-F5 to refresh, I sometimes have to *) rename CSS file in question, *) enter the CSS address into browser address bar (to HTTP-GET the non-existent file, this seems to flush Apache or file system cache), and *) then move the file to its correct name. So far, I have not seen the issue after this workaround.
Good luck! Jim A
Just tried the renaming and
Thanks for the compliment, I'm glad you like it. Just tried the renaming and pulling up the css file through the browser address bar. No go. I also tried to pull up the css file from IE and when it opened it in NotePad, there was an issue with character encoding. I work in OSX and I have never before had a problem with any css files I created in my texteditor. Could encoding be the problem here? What do I look for?
IE8/Win vista, your site files look OK
I checked your files in IE8 on Win/Vista, your site looks fine and all the CSS seems to be good, else the site would not look nice, so I don't know. If your issue is a caching issue, then since I did not have the old files, perhaps that explains it, or else maybe it is an IE7 only issue, I cannot check with IE7 or I would.
If you are editing/uploading using FTP from Windows, the only issue I am aware of per encoding is that files need to be encoded UTF-8/no BOM, otherwise you can run into issues. If the file having problems is one you have edited on Windows, this might be your issue. I use Notepad++ to obtain this encoding, there are no tools in the Windows distribution (at least that I am aware) that provide this feature. I am told Dreamweaver also has this feature but I do not use Dreamweaver myself. You can get Notepad++ for Windows from Notepad Windows Installer off tuxfamily.org and select Encoding/UTF-8 no BOM, save, then re-upload the file in question. Or you could try uploading the file in question from the Mac since it does not have the problem. I will post if I have more ideas.
Honestly, I am wondering if there is an issue with CSS caching in the 6.19 build because I seem to have issues sometimes but not always, and if you Google this site or others you should see other people posting per stale CSS as well.
Jim A.
I just realized that Drupal
I just realized that Drupal is at 6.19. I was on 6.17, I updated to 6.19 and cleared caches etc and things are still messed up here. I'm using textmate on OSX to edit my files. I'll add that I'm using IE7 is on XP via VMware Fusion if that's of interest. At least IE8 is playing nice with it in more recent operating systems.
I seriously doubt that you
I seriously doubt that you will see differences with Vista/XP/Win7, perhaps the only good thing about Windows is the apps including browsers do not behave differently between OS versions; I think because Microsoft updates the OS frequently via Windows Update, there really is not much difference between OS versions.
The fact you still get the old file even though you did an update suggests you too are seeing an Apache or server file system cache.
When I was Googling the CSS caching issue Sunday, I saw a note somewhere on these forums that there is a way to modify the Apache config to prevent Apache from caching files. I don't have the link because I am on a hosted server. If you can mod the Apache config, you might try looking for that post and trying the fix.
I let my caching issue sit most of the day to see if time was a factor in the caching... it is not. Right now I can see via a snoop the browser is requesting my css, and I can see using Firefox/Firebug I am getting the 8 hours old, not the current, CSS file. Bummer.