I encountered an issue that requires me to create something similar to the following:
I'm having trouble with CSS
Furthermore, I want all the divs to surface to the top when clicked.
.boxwrap{
margin-left: auto;
margin-right: auto;
top: 50px;
}
.box{
width: 100px;
height: 100px;
}
#box1{
margin-left: -100px;
background-color: red;
}
#box2{
margin-top: -50px;
margin-bottom: -50px;
margin-left: 0px;
background-color: black;
}
#box3{
margin-left: 100px;
background-color: green;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div align="center" class="boxwrap">
<div class="box" id="box1">
</div>
<div class="box" id="box2">
</div>
<div class="box" id="box3">
</div>
</div>