Topic: Aligning Card Items from the start of sidenav
Haso58 free asked 2 years ago
In my project I need to implement an admin dashboard, I so far did the sidebar and navbar like in the double navigation example here. Now I am trying to put three cards into the main content field, but it does not quite work.
This is what I want to achieve:
But this is right now what I get:
I want these three cards to fill the screen like in the admin template.
Snippet Sadly my snippet does not work for a reason I don't know. I put everything inside. Maybe because of the modules. But you can see the behaviour in the pictures.
I took the body tag out but still it does not work like in the template. I really do not know why it does not work.
As I understand this body tag you added manually? Remember that there should be no more than one body tag on the page, and your website code should be inside this tag.
I removed the body tag and checked your code in a fresh MDB Angular project and it works fine. Have you overwritten any styles?
So? haha I am really stuck. Don't want to be pushy but I am stuck here. I really do not understand why it does not work. I tried everything I could
Hi. There is a body tag in your snippet. Cards are inserted outside this tag. Did you do that in your application? Have you just tried to download the admin template and remove unnecessary elements from it?
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 10.0.0
- Device: Computer
- Browser: Chrome
- OS: Ubuntu
- Provided sample code: No
- Provided link: Yes