• Archives

  • set all the margin properties in one declaration

    By admin | March 9, 2008

    This tutorial will teach you how to set all margin properties in one declaration

     Syntax

    p.class{margin: 2cm 4cm 3cm 4cm}

    Using 

    <html>
    <head>
    <style type=”text/css”>
    p.margin {margin: 2px 4px 3px 4px}
    </style>
    </head>

    <body>
    <p class=”margin”>Checking the margin properties</p>
    </body>

    </html>

    Thanks

    krates

    Topics: CSS | Comments Off on set all the margin properties in one declaration

    Related Links: