• Archives

  • Outlining the text

    By admin | March 31, 2008

    Sometimes you need to outline a text

    we can do it easily by using css border command

    Syntax:

    <html>
    <head>
    <style type=”text/css”>
    p
    {
    border: red solid thin;
    background-color:yellow;

    }
    </style>
    </head>
    <body>

    <center><p>Some text</p></center>

    </body>
    </html>

    The this code will produce below like elements

    Thanks

    krates

    Topics: CSS | Comments Off on Outlining the text

    Related Links: