View Single Post
Old 11-12-2014, 01:54 AM   #124
quiris
Groupie
quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'quiris understands when you whisper 'The dog barks at midnight.'
 
quiris's Avatar
 
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
Quote:
You mean, you could not, for example, use Arial at 1em for the body, and Arial @3em for an h1? Not to be pedantic, just clarifying your express intent.
Hitch, you cannot "directly" styling using font-family property. Use CSS inheritance feature
body is ancestor of h1 in your example so you can style it according to my recipe in such way:
Code:
body {font-family: Arial; font-size: 1em}
h1 {font-size: 3em}
But according to my algorithm you cannot write:
Code:
body {font-family: Arial; font-size: 1em}
h1 {font-family: Arial; font-size: 3em}

Last edited by quiris; 11-12-2014 at 02:05 AM.
quiris is offline   Reply With Quote