0

I would want to place the red rectangle in the yellow rectangle in this image, but I can't figure out how. HTML (I'm using bootstrap):

<div class="col-md-3"></div>
<div id="pageContent" class="alert alert-primary col-12 col-sm-8 col-md-9">

</div>

And here is my css:

#pageContent {
margin: auto;
margin-top: 8%;
height: 500px;

}

Could you help me please ? :p

Isoware
  • 11
  • 1
    Add a negative margin to the red rectangle. Your code seems incomplete, so I can't help you more. Please provide a working snippet. – Iulius Nov 13 '18 at 23:20
  • Possible duplicate of [Twitter Bootstrap: div in container with 100% height](https://stackoverflow.com/questions/11677886/twitter-bootstrap-div-in-container-with-100-height) – First Name Nov 14 '18 at 00:39

0 Answers0