CSS Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
CSS Topics
css tutorials Introduction
Types Types
Background Properties Background Properties
Text Properties Text Properties
Font Properties Font Properties
Box Properties BOX Properties
Border Properties Border Properties
Margin Properties Margin Properties
Padding Properties Padding Properties
Special Topics Special Topics
Forums Ask Your Doubts
Scraps More about CSS
Feedback Feedback
 




CSS Font Style


Tutorials Css

Topic

To make the text look italic or oblique in html using style sheet.
How to set font style as italic or oblique?



Explanation

Property: Font Style

Usage:
font-style: italic;
font-style: oblique;
font-style: normal;

Definition:
This will set style to the fonts.
It takes the following values.

a)italic : It sets the fonts as italic fonts.
b)oblique: It sets the fonts as normal fonts.
c)normal : It sets the fonts as normal fonts. Its the default value.

Example 1:
<div style="font-style: italic;">testing font style</div>

Result:

testing font style


Example 2:
<div style="font-style: oblique;">testing font style</div>

Result:

testing font style


Example 3:
<div style="font-style: normal;">testing font style</div>

Result:

testing font style



Line height Font weight


A Note
CSS - Cascading Style Sheets can be used along with html tags as explained in this site. This simple CSS will help you to create much elegant and neat html web pages. This does not need any additional softwares or codings. All web browser are capable of handing CSS codes.

Note 2: If required you can using <span> instead of <div> tags. div tag will start and end on new lines. span will not exceed the tag area.
Other Links

web hosting