If you have 5 different stylesheets, how would you best integrate them into the site? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 32

If you have 5 different stylesheets, how would you best integrate them into the site?

22nd Nov 2016, 2:11 PM
//Lana Wilson
//Lana Wilson - avatar
13 Answers
+ 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
22nd Nov 2016, 2:24 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 3
use link feature
23rd Nov 2016, 11:08 AM
Bruh
+ 2
Gulp is the best way for integrate and management css files. but @import is the simple way for integration css files.
22nd Nov 2016, 9:48 PM
Masoud Jahromi
Masoud Jahromi - avatar
+ 2
or separate <style> </style> function for each sheet
23rd Nov 2016, 11:09 AM
Bruh
+ 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.
28th Nov 2016, 6:12 PM
Hariprasad Maniyaan
Hariprasad Maniyaan - avatar
+ 1
you can create a new CSS file and centralize all with @import feature, then just use the new CSS in your site.
22nd Nov 2016, 2:22 PM
Juan Carlos Luna Hernandez
Juan Carlos Luna Hernandez - avatar
+ 1
Use webpack to bundle all your CSS files into one file. Then `<link>` it into the web page.
26th Nov 2016, 12:10 PM
Saran
Saran - avatar
+ 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
28th Nov 2016, 5:02 PM
Sarthak
Sarthak - avatar
+ 1
well i just add them as external css links, givng them a proper names.
29th Nov 2016, 1:21 AM
Jovan Sakovic
Jovan  Sakovic - avatar
+ 1
gulp automation +1
4th Dec 2016, 4:52 PM
Michael Aduayi
Michael Aduayi - avatar
0
@import
23rd Nov 2016, 7:34 AM
Jitu Achar
Jitu Achar - avatar
0
novasipxx
24th Nov 2016, 11:06 AM
[No Name]
[No Name] - avatar
- 1
here are 3 types of stylesheets: 1)External stylesheet 2)internal stylesheet 3)inline stylesheet
25th Nov 2016, 8:14 AM
MATREX MOON
MATREX MOON - avatar