Set min-width to 200px in HTML and CSS

Description

The following code shows how to set min-width to 200px.

Example


<html>
<head>
<!--from   w w w  .j a  va  2 s.  c o m-->
<style type='text/css'>
p {
padding: 10px;
margin: 10px;
border: thin solid black;
width: auto;
min-width: 200px;
}
</style>
</head>
<body>
<p>
this is a test. this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test. this is a test.
this is a test. this is a test. this is a test. this is a test.
</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set min-width to 200px in HTML and CSS