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 5 years ago

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


Magdalena Dembna staff premium answered 5 years 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.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

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