CSS Property Value How to - max-height:200px;








Question

We would like to know how to max-height:200px;.

Answer


<!--   w w w  . j a  v a  2  s.c  o  m-->
<html>
<head>
<style>
div {
   min-height:150px; 
   max-height:200px;
   padding:5px;
   border:1px solid #000000;
}
</style>
</head>
<body>
    <div>The purpose of a web browser is     to read HTML documents and compose them into visible     
    or audible web pages. The browser does not display     the HTML tags, but uses the tags to interpret 
    the     content of the page. HTML describes the structure     of a website semantically along with 
    cues for     presentation, making it a markup language rather     than a programming language. </div>
</body>
</html>

The code above is rendered as follows: