how can I specifiy a css namespace for the mdb.css file?


Topic: how can I specifiy a css namespace for the mdb.css file?

steveBenjamin pro premium asked 11 months ago

how can I specifiy a css namespace for the mdb.css file?


Magdalena Dembna staff premium answered 11 months ago

If you want to include our css in only one component you can remove an import from main.js and add to your component the following line instead:

<style scoped src="mdbvue/lib/css/mdb.min.css"></style>

Or you can try creating your custom styling file in which you would specify the namespace and import our css - although I think that using scoped attribute is more suitable for a Vue app. Best regards, Magdalena


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Vue
  • MDB Version: 6.7.1
  • Device: website
  • Browser: chrome
  • OS: mac
  • Provided sample code: No
  • Provided link: No