Reputation: 31
I need to load a couple styles on one specific page.
The problem lies in the CMS I'm using
I can't change the class to the div and make it specific so I can add styles to it and I also can't add specific styles to the page itself. It all has to be done in the main style sheet.
I know you can use conditional CSS depending on the browser but...
Can you load styles based on what page you are on?
So if blank.html then load these 2 styles?
Upvotes: 0
Views: 913
Reputation:
Yes, you could use the CSS @document
at-rule, but only in Firefox under the @-moz-document
prefix. See https://developer.mozilla.org/en-US/docs/Web/CSS/@document.
Upvotes: 1