Welcome to WebmasterWorld Guest from 35.173.48.224

Forum Moderators: not2easy

Message Too Old, No Replies

italic vs oblique in CSS

How are they different?

     
5:50 am on Jan 17, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member annej is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 17, 2002
posts:3318
votes: 0


I can't tell the difference between the two but there must be something. Is it in the degree of slant?
11:38 am on Jan 17, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 20, 2004
posts:53
votes: 0


Hello Annej,

there is only a minimal difference, mosty how the italics-appearance of the font is generated and which kind of font you prefer to use (if there is a choice at all concerning the fonts in the database of the user agent).
imho, if you don't have to use it (in which case you would know why to use it), you don't need to use 'oblique'.

The css2.1 spec says:

The 'font-style' property selects between normal (sometimes referred to as "roman" or "upright"), italic and oblique faces within a font family.

A value of 'normal' selects a font that is classified as 'normal' in the UA's font database, while 'oblique' selects a font that is labeled 'oblique'. A value of 'italic' selects a font that is labeled 'italic', or, if that is not available, one labeled 'oblique'.

The font that is labeled 'oblique' in the UA's font database may actually have been generated by electronically slanting a normal font.

Fonts with Oblique, Slanted or Incline in their names will typically be labeled 'oblique' in the UA's font database. Fonts with Italic, Cursive or Kursiv in their names will typically be labeled 'italic'.

5:10 pm on Jan 18, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member annej is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 17, 2002
posts:3318
votes: 0


Thanks, I'd run across it in Meyer's css reference book and had hoped it would look a little different but it looks just like italic at least with arial.