fonts not working from another folder

I have a website and using fonts though css and they work fine. When I make a new folder for some of the html files, the font's don't show up. Do I need to have the fonts in that folder also? When I saved the html file it updated all the links so the fonts should be working.
designaireAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
Without a link or some code and folder structure we have no idea.
0
smeghammerCommented:
Are you using standard fonts in your CSS expected to be on the client computer (arial, times roman, tahoma etc.)? Or are they embedded fonts?

Check the path to the CSS as referenced from the HTML. If it is relative to the position of the HTML files, the CSS might not be found if you move them.

As GaryC123 posted, some example code would definitely help.
0
designaireAuthor Commented:
Then are embedded fonts and they do work until I put files in a folder called order. If I save the html file to another folder the links should update. I didn't know if there were rules about where fonts have to be. Not sure if this makes sense.

folder-css - mainMedia.css

      @font-face {
    font-family: 'permiansanstypefaceregular';
    src: url('../fonts/PermianSansTypeface-Bold-webfont.eot');
    src: url('../fonts/PermianSansTypeface-Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/PermianSansTypeface-Bold-webfont.woff') format('woff'),
         url('../fonts/PermianSansTypeface-Bold-webfont.ttf') format('truetype'),
         url('../fonts/PermianSansTypeface-Bold-webfont.svg#permiansanstypefaceregular') format('svg');
    font-weight: normal;
    font-style: normal;
      }

folder-fonts - fonts - this is where the fonts are


files.html
   <link rel="stylesheet" media="all" href="css/mainMedia.css" />





folder-order
order file.html - the fonts don't work in here but the css code does.

   <link rel="stylesheet" media="all" href="../css/mainMedia.css" />
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

GaryCommented:
Do you have a link to the site, it's hard to understand your structure from your comment.
0
COBOLdinosaurCommented:
try using the absolute path right from http:// 

If that works then the path you are using does not resolve from the css folder, and a better organization would be to have /fonts as a sub-directory of /css anyway.

Cd&
0
InsoftserviceCommented:
I would suggest to keep all your fonts and css in a single folder and to access it using url

for eg

we can use these mainMedia.css by using this link
So that you don't have to write the font css again.
<link rel="stylesheet" type="text/css" href="http://yourdomain/styles/mainMedia.css" />

considering below css as working with your font


folder-css - mainMedia.css

      @font-face {
    font-family: 'permiansanstypefaceregular';
    src: url('/fonts/PermianSansTypeface-Bold-webfont.eot');
    src: url('/fonts/PermianSansTypeface-Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('/fonts/PermianSansTypeface-Bold-webfont.woff') format('woff'),
         url('/fonts/PermianSansTypeface-Bold-webfont.ttf') format('truetype'),
         url('/fonts/PermianSansTypeface-Bold-webfont.svg#permiansanstypefaceregular') format('svg');
    font-weight: normal;
    font-style: normal;
      }
0
designaireAuthor Commented:
I just ended up putting them in a local folder.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.