-1

So far as I know I haven't done anything wrong yet. I am working on a school project to make a .PSD template exactly the same in HTML/CSS/JS. I have added my CSS.

HTML:

   <div class="center">

      <div class="services col-lg-3 col-md-3">
      more div's above ...</div>
      <div class="services col-lg-3 col-md-3">
          <img class=serviceimg src="img/raket.png" />
          <p class=deeltitel2>Rocket services</p>
          <p class=tekst2><?php include 'main/inc/mintekst.php'; ?></p>
      </div>
   </div>
</section>
<!--Here is nothing-->
<section id="section3">
   <h1 class="titel">MEET OUR BEAUTIFULL TEAM </BR> -</h1>
   <p class="tekst">We are a small teasm of designers, who help brands with big ideas.</p>
   <div class="center">
      <div class="circle col-lg-3 col-md-3"></div>
      <div class="circle col-lg-3 col-md-3"></div>
      <div class="circle col-lg-3 col-md-3"></div>
      <div class="circle col-lg-3 col-md-3"></div>
</section>

CSS:

* {
  margin:             0;
  padding:            0;
  outline:            0;
  text-decoration:    none;
}

/*Body*/
a:link {
  text-decoration:    none;
  color:              #fff
}
a:visited {
  text-decoration:    none;
  color:              #FFF;
}
/*Sections general*/
section {
  width:              100%;
  height:             100vh;
  font-family:       'Titillium Web', sans-serif;
  font-weight:        400;
  margin-bottom:      0;
}

enter image description here

What is wrong with it?

2 Answers2

-1

It could be that you are fighting the space between inline block elements.

This can be fixed using multiple techniques but the one I end up using most often is by setting the elements's font-size to zero. e.g.

section {
    font-size: 0;
}

Just remember that you need to explicitly set the font-size of all the child elements.

section a {
    font-size: 16px;
}

Another much cleaner solution would be to minify your HTML. Chris Coyier explains this issue in detail here.

FanManPro
  • 1,076
  • 1
  • 13
  • 31
-2

you could add a style="margin-bottom:0px;" to the tag that is inside the blue box. Or you could add it to the css file under the same tag id.

tecksup
  • 51
  • 1
  • 13