Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Javascript CSS HTML , +
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 asp.net 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>
      </div>
 

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 21:45pm
Edited 7-Jan-13 22:55pm
v2
Rate this: bad
good
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 ?
  Permalink  
Rate this: bad
good
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)
  Permalink  
Comments
sreeCoderMan at 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ő at 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 at 8-Jan-13 4:33am
   
how to do this i dont know please explain it briefly
Zoltán Zörgő at 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 at 8-Jan-13 5:04am
   
i got it friend............ thanks a lot
Zoltán Zörgő at 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
0 Marcin Kozub 330
1 OriginalGriff 256
2 Sergey Alexandrovich Kryukov 215
3 Praneet Nadkar 197
4 Richard MacCutchan 182
0 OriginalGriff 8,048
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2014
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