CSS text Examples

CSS text style - Examples. TEXT properties. TEXT properties.

by ITpresent

HTML

<div id="max">
    <p class="a">CSS text style example</p>
    <p class="b">CSS text style example</p>
    <p class="c">CSS text style example</p>
    <p class="d">CSS text style example</p>
</div>






















<a href="https://itpresent.com/web/css/css_text_style.php" target="_blank">CSS text style - Examples</a>

CSS

.a {
               font-weight: bold;
               font-style: italic;
               font-size: 45px;
               color: maroon;
               text-shadow: 2px 2px 0px gray;
    }
       .b {
               font-size: 45px;
               font-weight: bold;
               background-color: #0451BC;
               color:#646464;
               -webkit-text-stroke: 1px lightgray;
    }
          .c {
               font-size: 60px;
               font-weight: bold;
               background-color: #666666;
               -webkit-background-clip: text;
               -webkit-background-clip: text;
               -webkit-background-clip: text;
               color: transparent;
               text-shadow: rgba(255,255,255,0.5) 0px 3px 3px;
    }
    .d {
        font-size:55px;
               font-weight: bold;
               text-shadow: 0 1px 0 #ccc,
               0 2px 0 #c9c9c9,
               0 3px 0 #bbb,
               0 4px 0 #b9b9b9,
               0 5px 0 #aaa,
               0 6px 1px rgba(0,0,0,.1),
               0 0 5px rgba(0,0,0,.1),
               0 1px 3px rgba(0,0,0,.3),
               0 3px 5px rgba(0,0,0,.2),
               0 5px 10px rgba(0,0,0,.25),
               0 10px 10px rgba(0,0,0,.2),
               0 20px 20px rgba(0,0,0,.15);
    }