Navigation bar error

Navigation bar error
0

#1

Hello everyone,

got a problem while building my portfolio page and can’t figure out the solution.

there is a problem with my navigation bar. while i keep my screen width large everything is ok but if i resize width of the page this happens :
Untitled-4

and my code:

div class="background"
div class="container"
div class=“jumbotron” id=“navigation"
div class=“row “
div class=“col-xs-3” /div
div class=“col-xs-2"
h4 class=“text-center” a href=”#about” ABOUT /a /h4
/div
div class=“col-xs-2"
h4 class=“text-center” a href=”#portfolio” PORTFOLIO /a /h4
/div
div class=“col-xs-2"
h4 class=“text-center” a href=”#contacts” CONTACTS /a / h4
/div
div class=“col-xs-3” /div
/div
/div
/div

.background {
background-color: #b1d6eb;
}

#navigation {
background-color: #464553;
padding: 20px;
margin-top: 50px;
}

div {
font-family: “lato”, “Verdana”, “Arial”, “sans-serif”;
}

(had to delete < > brackets from html code after i pasted it here, otherwise my code wouldn’t appear)


#2

To enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#3
<div class="background">
<div class="container">
  <div class="jumbotron" id="navigation">
    <div class="row ">
      <div class="col-xs-3"></div>
      <div class="col-xs-2">
        <h4 class="text-center"> <a href="#about"> ABOUT </a> <h4>
      </div>
      <div class="col-xs-2">
        <h4 class="text-center"> <a href="#portfolio"> PORTFOLIO </a> <h4>
      </div>
      <div class="col-xs-2">
        <h4 class="text-center"> <a href="#contacts"> CONTACTS </a> <h4>
      </div>
      <div class="col-xs-3"></div>  
    </div>
  </div>
</div>

.background {
  background-color:  #b1d6eb;
}

#navigation {
  background-color: #464553;
  padding: 20px;
  margin-top: 50px;
}

div {
  font-family: "lato", "Verdana", "Arial", "sans-serif";
}