vertical-align1-expected.html 365 B

1234567891011121314151617181920
  1. <!DOCTYPE HTML>
  2. <style>
  3. body {
  4. margin: 0;
  5. }
  6. .other {
  7. width: 20px;
  8. height: 20px;
  9. background-color: blue;
  10. display: inline-block;
  11. }
  12. #target {
  13. width: 100px;
  14. height: 100px;
  15. background-color: green;
  16. display: inline-block;
  17. vertical-align: middle;
  18. }
  19. </style>
  20. <div class="other"></div><div id="target"></div><div class="other"></div>