html - How to get this div onto a new line -


how arc onto own line? put them both in same div share background, having trouble separating two. menu bar centered until put in "arc".

.header{    background-image: url(https://static.pexels.com/photos/204495/pexels-photo-204495.jpeg);    background-size: contain;    background-repeat: no-repeat;    background-position: center;    height: 80vh;    display: flex;    width: 100%;  }      .header ul li{  float: left;  color: white;  list-style: none;  padding: 7px 6px;  margin: 0;  text-align: center;  font-size: 15px;  display: flex;  }    .menu{    width: 100%;    text-align: center;    display: block;    justify-content: center;    margin: 0 auto;    padding: 0;  }
    <div class="header">        <ul class="menu">          <li>home</li>          <li>services</li>          <li>contact</li>          <li>contact</li>        </ul>        <br>        <div class="title">          <h1>arc</h1>        </div>      </div>

i change html this:

 <div class="header">       <ul class="menu">         <li>home</li>         <li>services</li>         <li>contact</li>         <li>contact</li>       </ul>       <br>       <div class="title">         <h1>arc</h1>       </div>     </div> 

to (solution):

 <div class="header">     <div id="navbar-wrapper">       <ul class="menu">         <li>home</li>         <li>services</li>         <li>contact</li>         <li>contact</li>       </ul>     </div>       <div class="title">         <h1>arc</h1>       </div>     </div> 

conclusion: better use example div tag make new line br tag gain more control on page setup , easier style. keep on work!


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -