I'm trying to make diagonal div, so i could create this shape: I use bootstrap grid, and I already made three div containers for the shape.
It will be made by 3 parts, 2 of them is diagonal and one is straight. I made the 3 parts. but i don't know how to make it diagonal.
example in codepen
html:
<body ng-app="appt" ng-controller="AppController" >
<div class="row test-row">
<div class="col-lg-4 test-outbox">
<div class="test-inbox test-inbox-center col-lg-10 col-lg-offset-1">
<span class="test-s"></span>
<span class="test-s"></span>
<div class="test-d"></div>
</div>
</div>
<div class="col-lg-4 test-outbox">
<div class="test-inbox test-inbox-center col-lg-10 col-lg-offset-1">
</div>
</div>
<div class="col-lg-4 test-outbox">
<div class="test-inbox test-inbox-center col-lg-10 col-lg-offset-1"></div>
</div>
</div>
</body>
css :
.test-row{
width: 100%;
margin-right: 0;
margin-left: 0;
position: fixed;
top: 100px;
}
.test-outbox{
border:1px black solid;
height:350px;
}
.test-inbox-center {
height: 300px; /*your login box height*/
position: absolute;
top: 50%;
margin-top: -150px; /*height/2*/
border:1px black solid;
border-radius: 3px;
background-color:white;
padding: 0;
}
.test-s:nth-child(even){
height: 100px;
width: 76px;
top: 150px;
position: absolute;
border:1px black solid;
right: 0;
}
.test-s:nth-child(odd){
height: 100px;
width: 76px;
top: 150px;
position: absolute;
border:1px black solid;
left: 0;
}
.test-d{
}