1

I'm trying to code a website which looks like this: two columns

  • In one row, two columns
  • one behaive like the container would be container-fluid, the other like container

I tried several ways I could imagine but none worked. This is my output code:

<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
<div class="container">
  <div class="row">
    <div class="col-6 bg-primary text-white">
      <h1>Hey there</h1>
    </div>
    <div class="col-6 bg-secondary">

    </div>
  </div>
</div>

Any one an idea? It's important the the margin is the same like container since all elements of the website should start in one line.

G-Cyrillus
  • 101,410
  • 14
  • 105
  • 129
Lars Flieger
  • 2,421
  • 1
  • 12
  • 34

0 Answers0