p::first-letter: font-style: italic : p.class « CSS « HTML / CSS






p::first-letter: font-style: italic

 


<!DOCTYPE html PUBLIC "-/pp/W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title></title>
        <style type='text/css'>
            h1::first-letter, p::first-letter {
                text-transform: capitalize; 
            }
            h1 {
                font-weight: normal;
                text-align: center;
                text-decoration: underline;
            }
            p {
                text-indent: 25px;
                text-align: justify;
                letter-spacing: 1px;
                word-spacing: 5px;
            }
            p::first-letter {
                font-style: italic;
                font-size: 120%;   
            }
        </style>
    </head>
    <body>
        <h1>ode</h1>
        <p>This is a test. </p>

    </body>
</html>

 








Related examples in the same category

1.p::first-letter
2.p::first-line: letter-spacing: 5px;
3.p.abstract:after content
4.p.QuickTip:before