bpburrow Posted December 22, 2009 Share Posted December 22, 2009 So I've spent the last year or so learning the basics of html, css, php and mysql while all along building a website. This week I decided to go back and clean up all patch work and various types of styles and methods. I created dummy pages while making changes just in case I screwed things up. It's a good thing I did. Apparently I didn't learn enough. Can anyone tell me why my css is working just fine in Firefox, but doesn't work at all in Safari or Chrome. www.brittanyburrowphotography.com/index2.php Quote Link to comment https://forums.phpfreaks.com/topic/185983-css-not-working-in-safari-or-chrome/ Share on other sites More sharing options...
haku Posted December 22, 2009 Share Posted December 22, 2009 Here's one potential problem: http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fwww.brittanyburrowphotography.com%2Findex2.php Quote Link to comment https://forums.phpfreaks.com/topic/185983-css-not-working-in-safari-or-chrome/#findComment-982100 Share on other sites More sharing options...
bpburrow Posted December 22, 2009 Author Share Posted December 22, 2009 I had a comment before " @charset "UTF-8" " in my CSS. Apparently that's a no no. It's interesting that firefox ignored the error. Quote Link to comment https://forums.phpfreaks.com/topic/185983-css-not-working-in-safari-or-chrome/#findComment-982279 Share on other sites More sharing options...
haku Posted December 22, 2009 Share Posted December 22, 2009 Ya, dreamweaver automatically adds that in your CSS, and Safari sometimes doesn't like it (Chrome runs off the same engine). 99% of the time, it doesn't cause any problems, but that other 1% of the time, it makes Webkit (the engine) do funny stuff. Firefox doesn't seem to mind that line though, which is why you didn't see any problems. I always delete that line whenever I create a new stylesheet. Quote Link to comment https://forums.phpfreaks.com/topic/185983-css-not-working-in-safari-or-chrome/#findComment-982328 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.