Fixed the menubar

How can i fixed the menubar on my Wordpress??

i type this code, menubar layer is wrong and cann’t show it.

.navbar-default .navbar-nav > li > a {
  color: #F5F7FA;
  line-height: 40px;
  text-transform: uppercase;
  font-size: 16px;
}
.navbar > .container .navbar-brand {
  color: #DADADA;
  font-size: 20px;
  margin: 13px 0;
  font-family: '微軟正黑體', serif;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  border-right: none;
  border-left: none;
}
.navbar {
  border-radius: 0;
width:100%; /* 自定義*/
position: fixed; * 自定義*/
}
.navbar-default {
  border: none;
}

how can i edit it, thx

I recently answered the same question and I hope that you don’t mind that I will point you to that discussion.

I assume that you are using Sparkling theme but it should work in similar manner for Dazzling theme and some other Bootstrap 3 powered themes.

thank you very much, your very nice

Everything you need can be found here: https://colorlibsupport.com/t/sticky-navigation/#post-9291