.role_wrapper1,.role_wrapper2 {
display:inline-block;
}
.role_wrapper1 {
width:200px;
height:230px;
border: 2px solid rgba(204, 204, 204, 0.2);
border-radius: 10px;
margin-right:6px;
}
.role_wrapper2 {
width:200px;
height:230px;
margin-right:10px;
background-color: #f8f8f8;
border-radius: 10px;
}
<div class="role_wrapper1">1</div>
<div class="role_wrapper2"></div>
When the first div is empty, both divs display correctly. However, when content is added to the first div, it causes a shift in the second div.
Is there something missing in my code?