Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8614879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:13:49+00:00 2026-06-12T05:13:49+00:00

I have both my CSS files and my Font files under the main domain,

  • 0

I have both my CSS files and my Font files under the main domain, let’s say under

http://www.mydomain.com/css and http://www.mydomain.com/fonts

I also have files on some subdomains and these files need to share the css and font
style of the main domain files. Therefore I just this at the top of my files:

<link rel="stylesheet" type="text/css" href="http://www.mydomain.com/css/algemeen.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://www.mydomain.com/css/gemeenten.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://www.mydomain.com/css/sidebars.css" media="all" />

All works great, the CSS shows up just fine. However, in these CSS files I make use of @font-face. This code on itself works fine in all browsers, at least, for the files on the main domain. So http://www.mydomain.com/index.php shows my chosen font perfectly in all browers. However, the index.php on my subdomain which is using the same CSS is not displaying my chosen font in IE or Firefox! It just uses standard Arial. Safari, Opera en Chrome work just fine. How is this possible? My @font-face code:

@font-face {
   font-family: "Nova"; font-weight: normal;
    font-style: normal;
   src: url("../fonts/proximanova-regular.eot");
}
@font-face {
   font-family: "Nova";
   src: url("../fonts/proximanova-semibold.eot");
   font-weight: 900;
}
@font-face {
   font-family: "Nova"; font-weight: normal;
    font-style: normal;
   src: url("../fonts/proximanova-regular.ttf") format("truetype");
}
@font-face {
   font-family: "Nova";
   src: url("../fonts/proximanova-semibold.ttf") format("truetype");
   font-weight: 900;
} 

Thanks guys!

Already added a .htaccess with this code in the fonts folder:

<FilesMatch "\.(ttf|otf|eot|woff)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>
</FilesMatch>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:13:50+00:00Added an answer on June 12, 2026 at 5:13 am

    This is a CORS issue.

    http://en.wikipedia.org/wiki/Cross-origin_resource_sharing

    http://www.w3.org/TR/cors/

    http://enable-cors.org/

    The simpler solution would just to copy your font files so they exist on the sub domain. The majority of the CSS code is fine, it’s just the @font-face code that you’ll need to put into a new file which would relatively link to a local font folder. Keeping the structure the same in both domains means you could just c+p the CSS/fonts without needing to create specific code.

    • /www/
      • /css/
        • main.css -> everything but @font-face
        • font-face.css -> src: url("fonts/font.eot")
        • /fonts/
          • font.eot
    • /subdomain/
      • index.htm -> reference http://domain.com/css/main.css and css/font-face.css
      • /css/
        • font-face.css -> src: url("fonts/font.eot")
        • /fonts/
          • font.eot
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, for things like background images, our css files have no domain specified. This
I have in my code both simple css/jquery menu and google.visualization.PieChart . However lately
I have two CSS tranistions as below (they both cover the page and then
I have both InDesign CS2 and CS3 installed. Both use files with .indd extension.
Suppose I have two files containing styles, a.css and b.css. I import them into
In css, I have seen both div.selector and selector being used to define styling
I have two sets of identical html and css files. One of which I'm
I have a web page for which I made two css files, one for
I have one font working fine in both IE8 and IE9 and all other
I have the following css and html files: body{ text-align: center; background-color: #eeeeee; margin:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.