Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends


i want to add a font named journalRegular to my website
i used font face
C#
@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 asp.net 2008 please tell me


this is my html
XML
<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>
      </div>



this is my css
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
Updated 7-Jan-13 21:55pm
v2

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)
 
Share this answer
 
Comments
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
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 ?
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900