+ 32
If you have 5 different stylesheets, how would you best integrate them into the site?
13 odpowiedzi
+ 3
I use @import url("import_file.css"); to import all style sheet in main style sheet. and than link my main style sheet to html. But if you want to get file at fast and compressed version use PHP or other programing language that give you ability to compression, cache of a file in PHP their is minify project from GitHub. here is the url
https://github.com/mrclay/minify#start-of-content
+ 3
use link feature
+ 2
Gulp is the best way for integrate and management css files.
but @import is the simple way for integration css files.
+ 2
or separate <style> </style> function for each sheet
+ 2
I personally recommended to have all style sheets combined to one external css file.. thats will best serve the main purpose of using css without any confusion.
+ 1
you can create a new CSS file and centralize all with @import feature, then just use the new CSS in your site.
+ 1
Use webpack to bundle all your CSS files into one file. Then `<link>` it into the web page.
+ 1
I'll simply separate them and categorized for different features Ex - 1 fir homepage another for product page another for photogallery nd so on
+ 1
well i just add them as external css links, givng them a proper names.
+ 1
gulp automation +1
0
@import
0
novasipxx
- 1
here are 3 types of stylesheets:
1)External stylesheet
2)internal stylesheet
3)inline stylesheet