CSS Property Value How to - max-width:500px;








Question

We would like to know how to max-width:500px;.

Answer


   <!--  ww w  .  j a  v  a2  s  .  c o m-->
<html>
<head>
<style>
div {
   min-width:200px; 
   max-width:500px;
   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: