Jump to content

Recommended Posts

Posted

I'm trying out the php shoppingcart tutorial, Paypal-4-building-the-catalog-page.mov

In index.php in the head

main.css

@CHARSET "UTF-8";

*

{

margin: 0 0;

padding: 0 0;

font-family: Helvetica, arial, sans-serif;

}

/* template */

body

{

margin: 0 auto;

background: #EEE;

 

}

.wrapper

{

width: 980px;

padding: 9px;

background: #FFF;

border: 1px solid #EFEFEF;

margin: 0 auto;

text-align: center;

}

 

It's not working in Safari.

Where should I take a good look at?

Posted

If it works in all other browsers except Safari, then that's very unusual.

 

Try clearing the Safari cache as it may not have been downloaded properly, or at all.

 

Try deleting @CHARSET "UTF-8"; from the very top of it; it's usual to put a meta tag for the charset in the page head section.

Posted

Cleared cache in Safari and removed @CHARSET "UTF-8";

Still not working.

I'm using MAMP and eclipse like in the tutorial, did exactly the same but can't figure it out

Posted (edited)

Does it work in any browsers? If not, it's probably a path problem.

means that the css file main.css is in a sub-directory/folder called css of the one that the php file is in, so check that the css folder/directory is a sub-directory.

 

ALSO delete the / before the css/main.css:-

 

(An alternative would be:-

where the css folder is in a higher level directory/folder than the one containing the php file) as .. / goes up a level.)

Edited by Wickham

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...