คุณสมบัติ min-height และ max-height
ใช้ min-height และ max-height เพื่อจำกัดความสูงขององค์ประกอบ ให้องค์ประกอบไม่เล็กหรือใหญ่เกินไป
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
div {
max-height: 550px;
min-height: 450px;
background-color: red;
}
</style>
</head>
<body>
<p>ลองปรับขนาดเบราว์เซอร์เพื่อดูผล</p>
<div>This is demo text...</div>
</body>
</html>