0

The following code produces a small rectangle that has 50% width but not 50% height. Why?

body {
  width: 100%;
  height: 100%;
}
<div style="width: 50%; height: 50%; background-color: #058; ">1234</div>
j08691
  • 197,815
  • 30
  • 248
  • 265
Jan N.
  • 55
  • 7

0 Answers0