<!DOCTYPE html>
<style>
.result {
  background: green;
  border: solid 2px;
  margin: 20px 0;
}
</style>

<div class="result" style="width: 100px; height: 0px;"></div>
<div class="result" style="width: 0px; height: 100px;"></div>
