- (11/14) Getting output from shell_exec() at all timesTAGS:Web ProgrammingWeb Server Admin
- (06/12) View Layer - Getting count of Entities in View in Cakephp 3TAGS:CakephpCake3
- (05/23) Changing URL in beforeRedirect() in Component - Cakephp 3TAGS:CakephpCake3Web Programming
- (01/28) Foundation CSS Framework ResourcesTAGS:FoundationCss
- (01/27) Change View File from Controller in CakePHP 3TAGS:CakephpCake3UsageWeb Programming
- (01/13) Loading Model/Table Anywhere in Cake3TAGS:Cake3Cakephp
- (10/06) CURL PHP 5.5 Issue on Windows (Using Twilio SDK)
Subscribe to my feed
What is the Difference Between Oblique and Italic in CSS?
Posted on 11/12/2009 at 09:34 am by Kevin Wentworth
Viewed 12,307 times | 0 comments
I was reading up on the CSS font-style property, making sure the default value was normal. In case you are wondering, the default font-style value is normal. What struck me was a new value I've never used before: oblique. Now I'm curious... what's the difference between oblique and italic as it pertains to CSS fonts?
As it turns out, not much! Based on what I learned (from this excellently thorough forum answer), it turns out that CSS actually uses the oblique font if it exists instead of the italic font if you set font-style: italic. The CSS standard actually stipulates that when you specify font-style: italic; the oblique font will be used first, then if not found, the italic font will be used.
My short answer- stick with font-style: italic and CSS will figure out which font style is better to use- oblique or italic.