CSS Property Value How to - overflow possible values








Question

We would like to know how to overflow possible values.

Answer


<html>
<head>
<style>
div {<!--  w w  w .  ja va  2s  .  co m-->
   max-height:75px;
   max-width:250px;
   padding:5px;
   margin:10px;
   border:1px solid #000000;
}
div.one {overflow:hidden;}
div.two {overflow:scroll;}
</style>
</head>
<body>
    <div class="one">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>
    
    <div class="two">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: