Mohamed Aboelfotoh
Published in : 2022-02-08
Hello everybody,
lately I was searching for the best CSS architecture approach as my projects started to grow bigger. I found an approach called (Object Oriented CSS). I read a little bit about it and found it so useful. The only thing that kept me searching not applying is that it was invented in 2013. I am afraid it turns out that it is outdated, or there is a better one out there. Can anyone elaborate about this topic?
Join our community and get the chance to solve your code issues & share your opinion with us
Sign up Now
Mohammed Bal'awi Date : 2022-02-09
Best answers
1
Best answers
1
In my opinion OOCSS is a good thing to know and use specially in big projects like your case, it's like a concepts or a standard instructions you need to flow to get a clean code, it has two main principles:
1 - separate structure and skin
Structure: size and position(margin, padding, width, height, ect)
Skin: the visual properties layout (color, fonts, shadow, ect)
2 - separate struc containers and content
Container: can be presented by structure class
Content: refers to elements that are nested in other elements
……
Also you can check other css methodologies
Hope this was helpful .
Mohamed Aboelfotoh Date : 2022-02-09
Best answers
4
Best answers
4
Many thanks! This is helpful! I appreciate it!