/    Sign up×
Community /Pin to ProfileBookmark

I am working with an app that has 2 different templates (different sections) and thus calls 2 different css files…. I’ve got it narrowed down to mostly using one, but I’m wondering if it would be easier to use the main site template’s css and insert the second as @import … that way the second area (a forum) can still call it’s css dynamically, but the basic things such as td’s and links and stuff would all be the same.

If my thinking is correct…. what is the best way to use @import? What browsers DON’T display this? I think I read somewhere that this was CSS2 and IE doesn’t do CSS2….. in which case, I won’t do it, because [I]unfortunately[/I] most folks still use IE…

Thanks!

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@JonaApr 14.2005 — [font=Trebuchet MS]Hi Lilqhgal,

The @import rule is actually CSS1. Fortunately, this means that it's going to be supported by most browsers. There are some exceptions, but it depends how you use it. [url=http://w3development.de/css/hide_css_from_browsers/import/]Here's a few tests[/url] that should show you just what browsers understand the @import rule, depending on just how you implement it.

Hope this helps.[/font]
×

Success!

Help @lilqhgal spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...