Looking to align these divs horizontally, I attempted to wrap them in a div and use display:inline-block; without success. I'm trying to understand positioning and display better. Any assistance would be greatly appreciated.
Here is the HTML:
<div class="small_box_right">
</div>
<div class="small_box_right">
</div>
<div class="small_box_right">
</div>
<div class="small_box_right">
</div>
CSS:
.small_box_right {
position: relative;
display:flex;
background: #CDCDB4;
border: 4px solid black;
height:300px;
width:300px;
}
.small_box_right:after, .small_box_right:before {
left: 100%;
top: 50%;
border: solid black;
content: " ";
height: ;
width: ;
position: absolute;
pointer-events: none;
}
.small_box_right:after {
border-color: rgba(136, 183, 213, 0);
border-left-color: #CDCDB4;;
border-width: 30px;
margin-top: -30px;
}
.small_box_right:before {
border-color: rgba(194, 225, 245, 0);
border-left-color:black ;
border-width: 36px;
margin-top: -36px;
}