max width : max width « CSS « HTML / CSS






max width

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
        <head>
            <title></title>
            <style type='text/css'>
        p {
            padding: 10px;
            margin: 10px;
            border: thin solid black;
            width: auto;
            max-width: 500px;
        }
            </style>
        </head>
        <body>
      <p>
          You have to know how to accept rejection and reject acceptance.
              - Ray Bradbury
      </p>
        </body>
    </html>

   
    
  








Related examples in the same category

1.max-width: 500px
2.Column with min and max width
3.max-width: 714px