2008-05-17

CSS : Font size and font family.

You may come across with this in your template:-

font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-size: 1.2em;
line-height: 1.6em;
font-family: Arial,sans-serif;

Alternatively, you may also write in a single line as follows:-

font: bold italic small-caps 1.2em/1.5em Arial,sans-serif;

Example:-

<style type="text/css">
/*- Styling Ismail--------------------------- */

#Ismail {
font: bold italic small-caps 1.2em/1.5em Arial,sans-serif;
}
</style>
<div id="Ismail">How do you feel today?</div>


How do you feel today?


Note: It will only work if you're specifying both the font-size and the font-family. The font-family command must always be at the very end of this command, and font-size must come directly before this (one another). It's alright, if you don't specify the font-weight, font-style, or font-variant then these values will automatically default to a value of normal.

0 comments:

Post a Comment

1. Comments posted must be accompanied by names or pseudonyms.
2. Anonymous posting and those containing profanities will be rejected.
3. Comments are moderated due to spam problems. I have to approve the comment before it will show up.

:)) ;)) ;;) :D ;) :p :(( :) :( :X
=(( :-o :-/ :-* :| 8-} :)] :-t b-( :-L