<html>
<head>
<style>
#parent {
height: 100px;
width: 250px;
border: 2px solid blue;
}
#child {
height: 50%;
width: 75%;
border: 2px solid red;
}
</style>
</head>
<body>
<h1>The height Property</h1>
<div id="parent">
<div id="child">I'm half the height of my parent.</div>
</div>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_dim_height_percent by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:16 GMT -->
</html>