@BeinRain06
Posted
Good Work Yosep, happy you raise to do this great grid component.
To answer your question:
You don't need to write class for each element of html in order to select them into your style.css file. You can use pseudo-selector E.g: If you want to select the second <p> tag in your div with class price-per-month you might do like following :
.price-per-month >p + p { // some style ... }
And you will get the second <p>per month </p> and could style it without having give it a class name
Class are real on need for container box, button, and tags elements that have a lot of CSS features to add.
Hope I was able to answer your question Winata.
Marked as helpful
@yosephwinata
Posted
Thanks for your reply @BeinRain06
@BeinRain06
Posted
@yosephwinata You are welcome, Just want to correct one thing, instead of pseudo-selectors in the last post I wanted to mention rather css selector.
You can learn about css selector on w3schools.com
Well hope you an amazing day/night Keep going and happy coding Yosep