float extra box properties : float : Layout Attributes HTML CSS TUTORIALS


HTML CSS TUTORIALS » Layout Attributes » float »

 

float extra box properties


 
<!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;
                    margin: 10px;
                    border: 1px solid black;
                    padding: 10px;
                    width: 100px;
                    height: 100px;
                    background: rgb(218218218);
                }
                p#normal {
                    height: 500px;
                    margin: 10px;
                    padding: 10px;
                    border: 1px solid black;
                    background: rgb(248248248);
                }
            </style>
        </head>
        <body>
            <p id='floated'>
                This paragraph is floated left.
            </p>
            <p id='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