How to create a DASHBOARD like that ?!

0

Will I have to create everything in DIV? Can anyone give an example of this "LINE A" so I can follow? The rest I was able to create, just these "LINE A, B, C ..." I'm having difficulty "stacking" the same way it is in the image.

    
asked by anonymous 13.07.2017 / 14:16

1 answer

4

There are n ways to put this layout together, there's an alternative that will give you a "north" of how to do those divs of lines, I left an example of the basic layout structure, that's all view and positioning , work within these structures that you will arrive at something very similar, I hope it helps.

.painel-principal {
  width: 100%;
  height: auto;
  border: 1px solid black;
  display: inline-flex;
}

.bloco-painel {
  height: 250px;
  border: 1px solid grey;
  width: 150px;
  margin: 5px 5px 5px 5px;
}

.cabecalho-bloco {
  border: 1px solid red;
  margin-top: 5px;
  height: 10%;
}
<div class="painel-principal">
  <div class="bloco-painel">
    <div class="cabecalho-bloco">
      LINHA A
    </div>
  </div>

  <div class="bloco-painel">
    <div class="cabecalho-bloco">
      LINHA B
    </div>
  </div>

  <div class="bloco-painel">
    <div class="cabecalho-bloco">
      LINHA C
    </div>
  </div>

  <div class="bloco-painel">
    <div class="cabecalho-bloco">
      LINHA D
    </div>
  </div>

</div>
    
13.07.2017 / 14:55