css width = height code example
Example 1: css height property
height: 300px;
height: 25em;
height: 75%;
height: max-content;
height: min-content;
height: fit-content(20em);
height: auto;
height: inherit;
height: initial;
height: unset;
Example 2: css size
#myID {
height: 100px;
width: 200px;
}
.myClass {
height: 220px;
width: 40px;
}
Example 3: width css
width: 100vh;
width: 100vw;
Example 4: css 100% height
<!DOCTYPE html>
<html>
<head>
<title>100% height</title>
<style>
html,
body {
height: 100%;
margin: 0;
}
.container {
height: 100%;
background: #000;
}
</style>
</head>
<body>
<div class="container"></div>
</body>
</html>