Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

no stylesheet in safari


gelfling

Recommended Posts

Posted

You're using php style comments in the stylesheet. That's invalid html.

 

To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.

Errors

URI : http://207.97.218.141/stylesheet.css

 

* Line: 145 Context : TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd

 

Parse Error - //shopping-cart content color }

* Line: 150 Context : TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even

 

Parse Error - //shopping-cart content color }

* Line: 157 Context : TABLE.productListing

 

Parse Error - //shopping-cart header/footer color border-spacing: 1px;

* Line: 159 Context : TABLE.productListing

 

Parse error - Unrecognized : }

* Line: 175 Context : .productListing-heading

 

Parse Error - //shopping-cart header/footer color }

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

IMHO Safari does not to the best job with stytlesheets.... I have found that if you have made notes to yourself using somthing like:

 

 //NOTE NOTE NOTE

it will cause problems, instead you must do it somthing like this:

 

/* NOTE NOTE NOTE*/

 

I also found that putting by putting

/* Begin Safari v1.0 hide */

at the top of my stylesheet and

/* End Safari v1.0 hide */

at the bottom it seems to look more how it does it IE and Firefox. I'm not sure why this works, or even how it works --- it is somthing that is built into Safari by the developers at Apple. I read about it a while back while doing another website, use it at your own risk-- no promises it will even work.

 

You might also want to check out this took:

 

http://jigsaw.w3.org/css-validator/

 

With that said, I'm not even able to get my stylesheet to look 100% in Safari... it is an on going problem.

 

Good Luck,

 

Nate

Posted

Use html comments not php comments

 

<!-- comment -->

 

Safari is the most standards compliant browser currently available.

 

Have a look at this page:

 

http://www.webstandards.org/act/acid2/

 

As far as I know only Safari displays the test correctly.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...