Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. A font issue in CSS !

A font issue in CSS !

Scheduled Pinned Locked Moved Web Development
htmlcsshelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohammad Dayyan
    wrote on last edited by
    #1

    Hi I had a font file (Channels.ttf), I installed it. Its name is CHANL. Now I use this CSS code in my local HTML file.

    .productText{
    font: bold 36pt CHANL;
    color: #b3c800;
    padding-left: 11px;
    }

    But the text doesn't show with CHANL font. I test it in FF3 and Opera9.5 What's wrong with it ? Thanks for your suggestions

    J P 2 Replies Last reply
    0
    • M Mohammad Dayyan

      Hi I had a font file (Channels.ttf), I installed it. Its name is CHANL. Now I use this CSS code in my local HTML file.

      .productText{
      font: bold 36pt CHANL;
      color: #b3c800;
      padding-left: 11px;
      }

      But the text doesn't show with CHANL font. I test it in FF3 and Opera9.5 What's wrong with it ? Thanks for your suggestions

      J Offline
      J Offline
      Jaffer Mumtaz
      wrote on last edited by
      #2

      Hi, Use

      .productText{
      font-family:CHANL;
      font: bold 36pt ;
      color: #b3c800;
      padding-left: 11px;
      }

      Hope this helps

      M 1 Reply Last reply
      0
      • J Jaffer Mumtaz

        Hi, Use

        .productText{
        font-family:CHANL;
        font: bold 36pt ;
        color: #b3c800;
        padding-left: 11px;
        }

        Hope this helps

        M Offline
        M Offline
        Mohammad Dayyan
        wrote on last edited by
        #3

        Thanks Jaffer. I used it but it made no difference. :(

        1 Reply Last reply
        0
        • M Mohammad Dayyan

          Hi I had a font file (Channels.ttf), I installed it. Its name is CHANL. Now I use this CSS code in my local HTML file.

          .productText{
          font: bold 36pt CHANL;
          color: #b3c800;
          padding-left: 11px;
          }

          But the text doesn't show with CHANL font. I test it in FF3 and Opera9.5 What's wrong with it ? Thanks for your suggestions

          P Offline
          P Offline
          Perspx
          wrote on last edited by
          #4

          Custom fonts were part of the CSS-2 standard, but due to the differences in browser implementation, the standard has since been dropped by many of the mainstream browsers. In this case it might be better to use a standard font for whatever you want to do, or use an image or Flash object containing the text you want to use in this custom font, if this is more appropriate. Regards, --Perspx

          "I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
          "Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups