Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the re-usability concept be applied to css?

Tags:

oop

css

I was just checking out this page, and came across the fact that CSS can be OO(Object oriented). So, is it possible to apply the re-usability concept of OOPs to css? If yes then how?

like image 228
Sujit Agarwal Avatar asked Jan 19 '23 14:01

Sujit Agarwal


1 Answers

It's not exactly OOP but using Sass, in particular its mixins and variables, will help to reuse your CSS.

http://sass-lang.com/

like image 176
Evgeny Shadchnev Avatar answered Jan 23 '23 04:01

Evgeny Shadchnev