hm_468x60_09_395
announcement

Joomla Web Hosting

Find the best and most affordable Joomla web hosting provider.

Community Showcase on joomla.org

The Joomla Project is pleased to announce latest undertaking to promote Joomla site

Advertise on JoomlPanel.com

For only $30.00 a month you can advertise on one of the web's largest Joomla websites.

More Changes Coming Soon!

Check back for future changes!

bh_300x250_08_395

Embedded Font with CSS3

Use CSS 3 and embed a font-face! There is also the quick + / - guide to which browsers support the herein effect. In order to use a font, we first must call it using the ‘@font-face’ command. This must be done for each individual font we wish to use.

FIRST THOUGH, lets take a quick history lesson as again in our series we are using a bit of language that is not strictly speaking ‘CSS 3′. The @font-face command has actually been around since CSS 2 and although not appearing in CSS 2.1, CSS 3 it is attempting to bring it into the standards.

Although I’m sure you have a few, you can download some fonts to play with here at dafont.com(they didn’t even pay me for saying that!)

Cross Brower Compatability
As previously mentioned in An introduction to CSS3, not all current browsers support CSS3 yet. Although originally a CSS 2 language, the only browser that currently supports us embedding fonts is Safari.
All articles in the CSS3 will be updated to show future support & development.

NOTE: Your browser does take a moment to load the font file so this is by no means the quickest way… images will more than likely still hold a place in our hearts for fancy font headings.

CSS 3 Embedded Font Face

HELLO CSS 3 WORLD!

The above header uses the SketchRockell font with the following CSS 3 applied to it:

  1. CSS 3 Font Embed (Example I)
  2. @font-face {
  3. font-family: SketchRockwell;
  4. src: url(‘SketchRockwell.ttf’);
  5. }
  6. .my_CSS3_class {
  7. font-family: SketchRockwell;
  8. font-size: 3.2em;
  9. letter-spacing: 1px;
  10. text-align: center;
  11. }

HELLO CSS 3 WORLD!

If we want, we can even apply the CSS 3 Shadow effect as well

  1. CSS 3 Font Embed (Example II)
  2. @font-face {
  3. font-family: SketchRockwell;
  4. src: url(‘SketchRockwell.ttf’);
  5. }
  6. .my_CSS3_class {
  7. font-family: SketchRockwell;
  8. font-size: 3.2em;
  9. letter-spacing: 1px;
  10. text-align: center;
  11. text-shadow: 3px 3px 7px #111;
  12. }

Current Browser Support (Tested, Jan 2009)

  • FireFox (3.0.5)
  • Google Chrome (1.0.154.36)
  • Internet Explorer (IE7, IE8) - [if using an .eot font file, it's actually sorta possible.. =O   ]
  • Opera (9.6)
  • Safari (3.2.1, Windows)

 

 

joomlahosting




Joomla Tutorials

Joomla panel provides easy to use website joomla tutorial free download joomla templates for joomla verssion 1.0x and 1.5x. Here you will learn how to install Joomla, all the way to installing and customizing your own templates.

Tutorials Showcase enables you to build Web sites and powerful web applications. Best of all, Joomla is an open source solution that is freely available to everyone.

Building Web CMS Project

Submit your joomla web to joomlapanel web showcase gallery directories and find the joomla stable extensions : Joomla plugin, joomla module, joomla component, joomla mambot.

Submit your Article blog into our article directories to anchance high web Traffic.

 

Article and Tips trick

Your sohowcase for Travel guide; Hotel, Villas resort, Flight, car website

tutorial