A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: fonts in css

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    3

    fonts in css

    how can make fonts very dynamic and attractive in css.

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    With CSS you're limited to the fonts the visitor to your site has installed. A common work around for people wanting to use less common fonts (and best suited for use with headings) is to use somekind of image replacement - a simple example might work a little like this:

    Code:
    #my-heading {
      width: 300px; height: 50px;
      background: url(image_with_my_heading_text.gif) no-repeat 0 0;
      text-indent: -9999em;
    }
    Code:
    <h1 id="my-heading">The text for my heading</h1>
    A slightly different approach would be to use sifr http://www.mikeindustries.com/sifr/ instead of an image this uses a flash movie to display the text.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center