Skip to content
loading...

re: How to center things in CSS 💘 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Not an advantage, just to separate main transform properties for easy understanding 😅
 

Ok. Cool. I typically don't see that style unless it's a mistake. That's why I asked.

If you want to be more OO-like, I would delegate alignment to another class. Then add that class to the class list in the HTML. Like what I've shared with you above. Similar to multiple inheritance.

Then .demo-box and .centre-me are reusable.

Thanks!

code of conduct - report abuse