How to use the CSS font-style

Discussion in 'CSS' started by endlesslove, Dec 4, 2011.

  1. #1
    font-style is used to format the style of the text in HTML documents.
    If font-style is not set, the browser will use the default font-style.
    Font-style attribute received on the following values​​:
    <span class="Apple-style-span" style="border-collapse:  separate; color: rgb(0, 0, 0); font-family: 'Times New Roman';  font-style: normal; font-variant: normal; font-weight: normal;  letter-spacing: normal; line-height: normal; orphans: 2; text-indent:  0px; text-transform: none; white-space: normal; widows: 2; word-spacing:  0px; font-size: medium;"><span class="Apple-style-span"  style="color: rgb(51, 51, 51); font-family: Verdana; font-size:  13px;">  
    Code (markup):
    font-style: italic;
    font-style: oblique;
    font-style: normal;
    font-style: inherit;  
    Code (markup):
    follow syntax:
    <style>
    #fontstyle { font-style: italic; }
    </style>
    <div id="fontstyle">Italic</div><body>  
    Code (markup):

     
    endlesslove, Dec 4, 2011 IP