Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar in Bulma display incorrectly? #3815

Open
manhcntt21 opened this issue May 6, 2024 · 1 comment
Open

Navbar in Bulma display incorrectly? #3815

manhcntt21 opened this issue May 6, 2024 · 1 comment

Comments

@manhcntt21
Copy link

This is about Bulma | the Docs.

Overview of the problem

I'm using Bulma version [1.0.0] and [0.9.4]
My browser is: Chrome

Description

I want to add navbar bulma to my first page, but I don't know why it move on center of page like below

image

Steps to Reproduce

  1. I followed official documents
  2. import to project
<script setup>
import ViewNotes from '@/views/ViewNotes.vue'
import ViewStats from '@/views/ViewStats.vue'
import NavBar from '@/components/layout/NavBar.vue'
</script>

<template>
  <nav-bar></nav-bar>
  <router-view />
</template>

<style>
@import 'bulma/css/bulma.css';
</style>
  1. run project
    npm run dev

Expected behavior

Navbar component should display on top webpage. This is all my code

@jrnvgt
Copy link

jrnvgt commented May 12, 2024

You've imported Bulma, but you are not using any of its classes. There is also no <nav-bar> tag in HTML and the tag you are looking for is <nav>.

Full example: <nav class="navbar" role="navigation" aria-label="main navigation">.

More info on how to structure your navbar can be found in the docs you referred to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants