Friday, October 14, 2011

Google Chrome user agent style sheet overwrites css

If you have used Google Chrome's developer tools quite a bit, you might know that it has a very useful interface  that specifies from where it is getting it's css settings for a specific element. You might stumble across a case where your css is getting overwritten by css from a "user agent style sheet". It seems like Chrome has a default style sheet for webpages; however if you css is getting overwritten, simply check your css syntax. It is most probably a syntax error that is causing Chrome to ignore your css and opt for using its own.

Happy coding,


No comments:

Post a Comment