RRRaney Posted March 27, 2014 Share Posted March 27, 2014 Hello, I have read that the @charset and the @import statements must be the first thing in a StyleSheet if they are being used. I have been using this with IE8 and Firefox 27.0, it seems to work fine. @charset "UTF-8";/****************************************************************************************** Name: Default.css* Version: 1.0.0****************************************************************************************** Description: *****************************************************************************************/@import url("../.Library/.Style/Base-1.0.0.css");@import url("../.Library/.Style/Extension-1.0.0.css");@import url("../.Library/.Style/Bulletin-1.0.0.css");/****************************************************************************************/body{ overflow-y: scroll; background-color: #FFF; background-image: url("../Image/Background-body.png"); background-repeat: repeat-X;}.....bla bla bla I like using this because it will completely load the first import before the rest (from what I can gather). I also like to have a heading at the top of my files. Will this fail on other browsers or versions? Thanks, Raney Link to comment Share on other sites More sharing options...
davej Posted March 28, 2014 Share Posted March 28, 2014 From what I've read it is faster to use link to load style sheets. See... http://www.stevesouders.com/blog/2009/04/09/dont-use-import/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now