bill_s17 Posted October 24, 2006 Posted October 24, 2006 I'm having problems getting Safari to recognize the stylesheet at all. I've tried changing the link reference to the stylesheet to an entire URL, that didn't seem to work. The only success I've had is actually putting the individual stylesheet attributes into the HTML tag as a... style=""...tag. Such as <body style="background-image:URL(image.gif);"> for example. I also tried putting the stylesheet with <style></style> tags on the index page itself and it still didn't recognize the classes. I'm baffled. Any ideas? Does it have anything to do with Doc type? I tried changing that to "Strict" and it didn't seem to affect it.
djmonkey1 Posted October 24, 2006 Posted October 24, 2006 Try changing the stylesheet tag from <link rel="stylesheet" type="text/css" href="stylesheet.css"> to <link rel="stylesheet" type="text/css" href="/stylesheet.css"> To have a proper doctype you will need to change <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> There is a good article on doctypes here: http://alistapart.com/stories/doctype/ Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
bill_s17 Posted October 24, 2006 Author Posted October 24, 2006 Hmmm, I was hopeful, but that didn't seem to work. I'll check out that link on doc types though.
cantseeme Posted October 24, 2006 Posted October 24, 2006 im having the same problem and none of the above helped... Anyone have any ideas??? Woks fine in all browsers but safari.....
djmonkey1 Posted October 25, 2006 Posted October 25, 2006 Is this problem occurring just on your osCommerce site, or do you see similar problems with other sites that use linked stylesheets? Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
bill_s17 Posted October 26, 2006 Author Posted October 26, 2006 Just my OSCommerce site, I've built plenty of sites that work in Safari, this is the first time I've ever dealt with OSCommerce or had this problem. You can see my test site at http://www.motobella.com/moto.
janice171 Posted March 27, 2007 Posted March 27, 2007 Hi, Has anyone found a solution to this as i've just discovered that all of my oscommerce sites are not displayign correctly...i think it is that it's not seeing the stylesheet. Please help. Thanks.
Guest Posted October 27, 2007 Posted October 27, 2007 Hi there, I have just seen this post and no one seems to have given a solution yet. I have had the same problem - my designer wasn't testing on a Mac!, so I fixed it myself. If you still have a problem, this is what I did. I am not a web expert but looking at the CSS file there are a number of sloppy statements in the code eg. no space before {'s. I guess Safari is a bit fussy. Oddly enough Safari beta 3 was OK. Anyway I simply opened the .css file with BBEdit and from the CSS tools palette used the FORMAT command. This simply reformats the code to W3C standards. My site is now OK. Obviously you could hand edit the errors rather than use BBEdit if you know what you are doing. Good luck, Mike
Recommended Posts
Archived
This topic is now archived and is closed to further replies.