English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I was wondering if it is possible to link to a CSS file across domains without security/cross browser issues.

Here is the setup: Manage one primary site on Domain A with secondary content on Domain B. Both sites use same layout/design. I have direct control over Domain A, but changes to Domain B require a third party to implement.

I would like to have immediate control over the stylesheet and wass thinking about having the CSS file on Domain B be a hard link to the file on Domain A.

So instead of the LINK tag on Domamin B being a relative link to the finle on Domain B, its a URI to the file on Domamin A.

Any issues I should be concerned with?

2007-08-27 06:52:13 · 3 answers · asked by wyntre_2000 5 in Computers & Internet Programming & Design

Good answers so far - thanks!

Ownership of styles is mine, and other service is contracted out so ownership issue not an issue. Just want to eliminate the need of the middle person.

Big factor is to have changes take place on both sites simultaneously without having to wait.

2007-08-27 07:16:45 · update #1

3 answers

I do it on mine...link rel="stylesheet" href="..., with the url being absolute instead of relative

I've bumped into myself through my own stooopidity a few times, though, by updating the css for one website without remembering the impact it'll have on the other!

And remember, it'll slow down the load time, because the server has to go out and contact the css web server on the other website to fetch the css file at least once.

2007-08-27 07:01:05 · answer #1 · answered by fjpoblam 7 · 0 0

Just make sure that you can access the file from Domain B (shouldn't be a problem if you can access Domain A CSS URL from outside the hosting company network).

And no, I don't think there are any security consideration.

If you're using someone else's CSS, that's another problem.

2007-08-27 07:00:10 · answer #2 · answered by Adrian Godong 2 · 0 0

No issues I can think of. All it's doing is loading the CSS file into the other site. Have done this myself and it worked fine n dandy. Just be careful if you're using free hosting or whatever sometimes they have hotlink protection and might see it as your other site hotlinking your pages. Probably not though.. so link away!

2007-08-27 07:01:34 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers