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.


Log in to reply