HTML/CSS/CSS Attributes and Javascript Style Properties/max width

Материал из Web эксперт
Перейти к: навигация, поиск

max-width: 500px

   <source lang="html4strict">

<!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>

This is a test. This is a test.

       </body>
   </html>
</source>