1
There are several methods of doing this, I believe that this is the simplest, using a triangle at the end of each line to simulate a step. Follow the example code with two:
.chao1{
width:50%;
height:20px;
background:#cecece;
float:left;
}
.degrau1{
float:left;
width: 0;
height: 0;
border-style: solid;
border-width: 20px 0 0 40px;
border-color: transparent transparent transparent #cecece;
}
.chao2{
width:90%;
height:20px;
background:#cecece;
float:left;
}
.degrau2{
float:left;
width: 0;
height: 0;
border-style: solid;
border-width: 20px 0 0 40px;
border-color: transparent transparent transparent #cecece;
}
<div class="chao1"></div>
<div class="degrau1"></div>
<div class="chao2"></div>
<div class="degrau2"></div>
can do with a triangle
– haykou
How would it look ? Can you show an example of a div that has that detail on either side ? if possible in 4
– Renan Rodrigues