Set Gradiant Card to opened as default


Topic: Set Gradiant Card to opened as default

Espen Rønning pro premium asked 12 months ago

I have a page with multiple gradient cards. Is it possible to set one of the cards as opened when the user first opens the page?


Mateusz Łubianka staff commented 12 months ago

Hi,

please, create a snippet showing your problem here: https://mdbootstrap.com/snippets/. I'll try to help you.

Best,


Espen Rønning pro premium commented 12 months ago

I've created a snippet her: https://mdbootstrap.com/snippets/jquery/ererling-sande-no/1981114

How do I add the cards-extended.min.css stylesheet?


Mateusz Łubianka staff answered 12 months ago

@Espen Rønning,

Unfortunately we don't have any class that allows o set one of the cards as opened when the user first opens the page. You can use Promoting card and add class .show to .card-text element https://mdbootstrap.com/plugins/jquery/extended-cards/#promoting-card

Best,


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: jQuery
  • MDB Version: 4.10.1
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No