Jump to content

Multiple External Css Files?


Recommended Posts

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 by taaron12
Link to comment
Share on other sites

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 by Deirdre's Dad
Link to comment
Share on other sites

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...