<!DOCTYPE HTML> | |
<style> | |
body { | |
margin: 0; | |
} | |
.other { | |
width: 200px; | |
height: 200px; | |
background-color: blue; | |
display: inline-block; | |
} | |
#target { | |
width: 100px; | |
height: 100px; | |
background-color: green; | |
display: inline-block; | |
vertical-align: middle; | |
} | |
</style> | |
<div class="other"></div><div id="target"></div><div class="other"></div> |