JSFiddle - React, Tailwind, and code Playground

by pleinx

HTML

<div class="module-prod">
  <div class="sidebar">
    <div class="sidebar-inner">
      <div>
        SidebarFoo
      </div>
      <div>
        SidebarFoo
      </div>
      <div>
        SidebarFoo
      </div>
    </div>
  </div>
  
  <h1>Coole Produkt Headline</h1>
  <h3>Wenig coolere Sub-Headline</h3>
  
  <img src="http://placehold.it/410x300">
  
  <div class="slider">
    fetter slider
  </div>
</div>

CSS

body {
  padding: 0 20px;
  margin: 0;
}

.module-prod {
  min-width: 700px; 
  max-width: 1440px;
  box-sizing: border-box;
  width: 100%;
}

.sidebar {
  float: right;
  min-width: 230px;
  width: calc(25% - 20px);
  padding: 20px;
  box-sizing: border-box;
  background: lightgrey;
  margin-left: 20px;
}

.sidebar div {
  box-sizing: border-box;
  width: 100%;
  margin: 20px 0;
  padding: 30px;
  background-color: #fff;
}

.slider {
  width: 100%;
  background: red;
  height: 250px;
}