Click here to Skip to main content
13,139,254 members (51,214 online)
Rate this:
Please Sign up or sign in to vote.
Hi friends

i want to add a font named journalRegular to my website
i used font face
@font-face {
    font-family: 'JournalRegular';
    src: url('journal-webfont.eot');
    src: url('journal-webfont.eot?#iefix') format('embedded-opentype'),
         url('journal-webfont.woff') format('woff'),
         url('journal-webfont.ttf') format('truetype'),
         url('journal-webfont.svg#JournalRegular') format('svg');
    font-weight: normal;
    font-style: normal;

i have saved my file in index.html
the font is not working properly in 2008 please tell me

this is my html
<div class="header-desc">
        <p>"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
          tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
          veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea co
          mmodo consequat. Duis aute irure dolor in reprehenderit in voluptate" </p>

this is my css
.header-desc p{
    color: #336600;
    font: 22px 'JournalRegular', Arial, sans-serif;
    letter-spacing: 1px;
    margin-bottom: 0;
    margin-left: 45px;
    margin-top: 43px;
    text-align: justify;
Posted 7-Jan-13 20:45pm
Updated 7-Jan-13 21:55pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Have you tried providing a full URL ? Or even just an absolute one ? What does 'not working properly' mean ? If it's a HTML file, then it's not really ASP.NET even, is it ?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

1) Make a plain html+css and test it offline first
2) Use a sniffer (IE9 Deevloper toolbar or Fiddler) to see if the files you reference are downloaded from your server. In general resources referred with relative path from the css file or embedded style are downloaded starting from the same path as the referencing file (in case of a css file from the path of the css file itself)
sreeCoderMan 8-Jan-13 4:00am
in plain html its working but while i place the html to my asp.net2008 its not working
Zoltán Zörgő 8-Jan-13 4:12am
Proceed to step 2, and see what url is using the browser to get the files, and what is the answer it gets from the server. Than you can decide to move the resources to an other location on the server, or change the url in the css.
sreeCoderMan 8-Jan-13 4:33am
how to do this i dont know please explain it briefly
Zoltán Zörgő 8-Jan-13 5:14am
1) Download Fiddler
2) Install
3) Close all other browsers, just to have a clear view
4) Run fiddler and refresh (Ctrl+F5) the page you are tracking
5) Look at the resources that the client is trying to reach and at the results it gets
sreeCoderMan 8-Jan-13 5:04am
i got it friend............ thanks a lot
Zoltán Zörgő 8-Jan-13 5:14am
Great! And do yo see what you have to see?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100