<div class="container"> 
  
    <div class="fix400">
    <div class="text">Fixe Breite: 400px</div>
    </div>
  
    <div class="fix400 color">
    <div class="text">Fixe Breite: 400px</div>
    </div>
  
    <div class="fix400">
    <div class="text">Fixe Breite: 400px</div>
    </div>
  
 </div>

<div class="container"> 
  
    <div class="prozent33">
    <div class="text">Breite: 1/3</div>
    </div>
  
    <div class="prozent33 color">
    <div class="text">Breite: 1/3</div>
    </div>
  
    <div class="prozent33">
    <div class="text">Breite: 1/3</div>
    </div>
  
</div>
body {
  margin: 0;
  background-color: #bae9ff;
}

.text {
  font-family: sans-serif;
  color: white;
  padding-top: 22px;
  padding-left: 22px;
}

.container {
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  clear: both;
}

.fix400 {
  width: 400px;
  height: 60px;
  background-color: #1c75e4;
  margin-bottom: 20px;
  float: left;
}

.prozent33 {
  width: 33.333%;
  height: 60px;
  background-color: #1c75e4;
  float: left;
}

.color {
  background-color: #125ab2;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.