Forum Moderators: not2easy

Message Too Old, No Replies

Using a style sheet over a number of sub-domains

The effect of using a single style sheet on seperate sub-domains

         

scotland

7:11 pm on Mar 18, 2007 (gmt 0)

10+ Year Member



Hello

I was wondering what would be the best way to use a single style sheet over several sub-domains. Is there a problem if you place the style sheet on the main domain and then use a full url reference to link to that from the sub-domains.

I am interested in knowing whether it is better to have separate files on each sub-domains (a nuisance to maintain)and the impact on using a full url reference.

Thanks

scriptmasterdel

11:47 pm on Mar 18, 2007 (gmt 0)

10+ Year Member



If you have server side scripting available then you could create one file as a server generated file and get the server generated CSS files to read the content of one file for each site, this would make it easier to maintain and would be asif it had a Stylesheet on each sub-domain?

Just a thought ....!

Del

scotland

9:22 am on Mar 19, 2007 (gmt 0)

10+ Year Member



Hi Del, thanks for the reply

I would not know how to create a server side scripts, although I can find out of course. I really just want the simpliest solution.

Thanks

Richard

topr8

9:30 am on Mar 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



the simplest solution would be to copy the style sheet and each subdomain.

if you have the ability to create symlinks on your server than keep the 'master' css file somewhere and then create symlinks inside each of the subdomains, that way every change you make in the master will be reflected in a change in each of the symlinks