float highlighted, dimensions multiple paragraph : float : Layout HTML CSS TUTORIALS


HTML CSS TUTORIALS » Layout » float »

 

float highlighted, dimensions multiple paragraph


 
<!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: rgb(218218218);
            margin: 10px;
        }
        p.normal {
            border: 1px solid black;
            background: rgb(248248248);
        }
            </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
» float