• AddThis Social Bookmark Button

    Add to Technorati Favorites

  • Archives

  • set all the margin properties in one declaration

    By krates | 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

    Share and Enjoy:
    • del.icio.us
    • Technorati
    • Digg
    • StumbleUpon
    • Ma.gnolia
    • Furl
    • Reddit
    • Slashdot
    • Spurl
    • YahooMyWeb

    Topics: Css |

    Related Links:

    Comments