Can I have more than one css file in my html file?

I am using the django framework and using templates, inheriting many of the admin base templates. What's interesting: can I have more than one CSS file in one HTML file? those. maintain a django admin css file but then have a different custom css file with different styles!

0


source to share


4 answers


Just add that while multiple css files are of course possible, it's actually best to combine the css (programmatically if possible) into as many files as possible.



Fewer files = fewer HTTP requests = more responsive to the end user.

+1


source


Yes, you can. Just put tags in CSS files or insert style in style tags.



+8


source


Yes, you can. But if you try to override any of the CSS in django admin CSS, you have to use! Important in your style definitions.

+1


source


Of course, why they are called cascading style sheets is because you can use a dozen of them in sequence.

-1


source







All Articles