Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Difference between ons-card and div?
-
@Fran-Diox @misterjunio @munsterlander
What is the difference between ons-card and div?
Why should I use ons-card instead of div?
-
@rgins16 Well, in my opinion that is all it really is, i.e. ons-card = div. Its just a prestyled component to help other developers out. Is there one way that is better than the other, well no in my opinion. It comes down to whether or not you are comfortable working with CSS.
-
@munsterlander Okay, thanks. CSS is a big NO-NO for me hahaha. I will experiment with ons-card.
-
every ons element gives a standard css to be responsive in all the devices. So yes is a div but with specified css rules.