+ 1

External CSS

Why do people use external css files is it really worth the bother to create a different file just to have the css and html divided ?

19th Jan 2017, 10:04 PM
Dejan Jankovic
Dejan Jankovic - avatar
6 Réponses
+ 6
1. Easier management 2. Lesser codes piled up together 3. When you open a notepad/text-editor you won't be opening up a zip-bomb
19th Jan 2017, 11:18 PM
Wen Qin
Wen Qin - avatar
+ 1
on real world we use external css a lot and for me i like us it external because i focused more not get distracted by other code and i feel confertable using it like that and for website to optimize loading time
19th Jan 2017, 10:09 PM
Ayoub Bani
Ayoub Bani - avatar
+ 1
and you simply can use same central css on different html pages
20th Jan 2017, 2:11 AM
KiX
+ 1
Is not an obligation, just do what is most comfortable to you. When your project grows bigger, you will need a centralized solution to manage the code. The industry standard is an external css file. But you can use a custom solution like "search and replace" or a component approach.
21st Jan 2017, 7:30 AM
Sebi Bv
Sebi Bv - avatar
+ 1
I guess yeah 'cause that is what I exactly doing 👍
25th Jan 2017, 11:52 PM
Justin Mico Credo
Justin Mico Credo - avatar
0
For me I would say it eases pressure when editing css its just as a module, it create a form of transparency where you only see the css not php, html or javascript. This helps in editing for one focuses deeply on the css not been distracted by other languages.
3rd Feb 2017, 7:29 PM
john njoroge
john njoroge - avatar