• Archives

  • AddThis Social Bookmark Button

    Add to Technorati Favorites

  • 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:
    • Digg
    • del.icio.us
    • Facebook
    • NewsVine
    • Reddit
    • StumbleUpon
    • YahooMyWeb
    • Google Bookmarks
    • Yahoo! Buzz
    • TwitThis
    • Live
    • LinkedIn
    • Pownce
    • MySpace

    Topics: CSS | No Comments »

    Related Links:

    Comments

    Security Code: