H
H
hakkol2015-08-21 08:05:30
css
hakkol, 2015-08-21 08:05:30

How to properly layout the header of the site?

Good day, the following question arose when laying out the site - there is a site 181cb6e7be4f4f70b7c544a4e879c49b.pngheader. The site is made using bootstrap. If we use the logo ("INFUSION") inside the col-md-2 div, then there is just a white indent on the left, and then the logo on a colored background. What is the best way to get rid of this "gap" so that there are no problems when adapting the site to other devices?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Nesteruk, 2015-08-21
@hakkol

.top_line{
background-color: #63c6ae;
overflow: hidden;
}
.top_line .col-md-10 {background-color: #fff;}
.top_line .col-md-10:after {
content:'';
position:absolute;
left: 100%
width: 50%
height: 100%;
top: 0;
background: #fff;
}

H
hakkol, 2015-08-21
@hakkol

<header class="main_header">
  <div class="top_line">
    <div class="container">
      <div class="row">
        <div class="col-md-2">
          <div class="main_logo">
            <p>Infusion</p>
          </div>					
        </div>
        <div class="col-md-10">
          <div class="main_nav">
            <ul>
              <li><a href="#">design Folio</a></li>
              <li><a href="#">Services</a></li>
              <li><a href="#">our business</a></li>
              <li><a href="#">how we help</a></li>
              <li><a href="#">take the tour</a></li>
              <li><a href="#">contact</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</header>

in css I write:
.main_logo {
  background-color: #63c6ae;
  height: 74px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question