Why is my div within the range working correctly?
I am writing the following markup HTML:
<span> Some Text
<div id="ch"></div>
</span>
and styles:
span{
border: 1px solid black;
text-align:center;
width: 300px;
height: 300px;
background: aqua;
}
#ch{
width:100px;
height:100px
background: yellow;
}
- Why is the property
heightnot applied to the elementdivthat is insidespan, but the width is applied? - Why is my right border missing
span?
+4
user2953119
source
share