taaron12 Posted August 21, 2009 Report Share Posted August 21, 2009 (edited) Hi guys. I ran a search, but couldn't find anything. Hope ya'll don't mind me asking. I'm trying to work on my css for my site. I was wondering, is it possible to link multiple external CSS files, (.i.e. One for the navigation Menu, one for the layout(s))? If anyone else has some advice, I'd appreciate it!Taaron Edited August 21, 2009 by taaron12 Link to comment Share on other sites More sharing options...
jeffman Posted August 21, 2009 Report Share Posted August 21, 2009 (edited) Absolutely. The simplest thing is just to have multiple <link> elements in your head.You can also use @ rules: <style type="text/css"> @import url(monkey.css); @import url(zebra.css); @import url(human.css);</style> @ rules MUST be the first line(s) of a style sheet, internal or external. Style rules must come below them.I find that @ rules make for cleaner looking, easy to read code. Edited August 21, 2009 by Deirdre's Dad Link to comment Share on other sites More sharing options...
bigsilk Posted August 21, 2009 Report Share Posted August 21, 2009 Be careful how you use elements throughout each style sheet, though. You can end up with conflicting selector property values (body value, etc.) Link to comment Share on other sites More sharing options...
taaron12 Posted August 21, 2009 Author Report Share Posted August 21, 2009 Thanks, guys. Taaron 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