• Archives

  • Decorating the text through css

    By admin | January 7, 2008

    Many a times we want to decorate the text. here are the Five main text decoration properties that can be used in your matter.

    <html>
    <head>
    <style type=”text/css”>
    h1 {text-decoration: overline}
    h2 {text-decoration: line-through}
    h3 {text-decoration: underline}
    h4{text-decoration: blink}
    a {text-decoration: none}

    </style>
    </head>
    <body>
    <h1>Something</h1>
    <h2>Something</h2>
    <h3>Something</h3>
    <h4>Something</h4>
    <p><a href=”http://www.easytutorial.info”>Something</a></p>

    </body>

    </html>

    Now see the text contained between h1 tag will have a line over it

    The text contained between the h2 tag will have a line throught it (Strike through) .

    The text contained between the h3 tags will have a underline

    The text contained between the h4 tags will blink

    The last one is a link this will have no underline

    Thanks

    krates

    Topics: CSS | Comments Off on Decorating the text through css

    Related Links: