float highlighted dimensions with multiple paragraphs : float and position : Layout Attributes HTML CSS TUTORIALS


HTML CSS TUTORIALS » Layout Attributes » float and position »

 

float highlighted dimensions with multiple paragraphs


 

<!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#floated {
            float: left;
            border: 1px solid black;
            padding: 10px;
            width: 100px;
            background: gold;
            margin: 10px;
        }
        p.normal {
            border: 1px solid black;
            background: red;
        }
            </style>
        </head>
        <body>
      <p id='floated'>
          This paragraph is floated left.
      </p>
      <p class='normal'>
          The text if this paragraph is beside the floated paragraph.
      </p>
      <p class='normal'>
          The text if this paragraph is beside the floated paragraph.
      </p>
        </body>
    </html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Layout Attributes
» float and position