Topic: Trying to run this code but it will not work (Source from the Learning Center)
yacozaragoza free asked 1 year ago
I am trying to run the "Double navbar with center search" code but it seems like it does not work when adding to a HTML page.. Can anyone tell me what I am missing...
This is what I have above the HTML snippit
<!DOCTYPE html>
Material Design for Bootstrap
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
rel="stylesheet" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
rel="stylesheet" />
<!-- MDB -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.2.0/mdb.min.css"
rel="stylesheet" />
and this is what I have after the code
<!-- MDB -->
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.2.0/mdb.min.js"></script>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 6.2.0
- Device: PC
- Browser: Chrome
- OS: Windows 11
- Provided sample code: No
- Provided link: No
yacozaragoza free commented 1 year ago
Here is the link I am using to get the HTML
https://mdbootstrap.com/docs/standard/extended/double-navigation-with-2-navbars/#
Mateusz Lazaru staff commented 1 year ago
Do you have any errors in console? Make sure CSS imports are inside the
<head>
tag, and the code snippet and js import are inside the<body>
tag.