![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a pair of webservers (actually virtual hosts in the same apache). They are mostly clones, but one is used to develop changes, so is the test system. Most of the pages are generated by CGI scripts, and on the test system the header incorporates <BODY BGCOLOR=#FFD0D0> generating a puce background which warns people of the test environment. I can easily change this to inline CSS, but I'd prefer to use an external stylesheet. I could use different stylesheets for the test and production systems (and probably will, so I can test the effects of changes in the stylesheet itself) but I started to wonder if there were any way within CSS of setting the background colour based on the host. |
#3
| |||
| |||
|
|
I have a pair of webservers (actually virtual hosts in the same apache). They are mostly clones, but one is used to develop changes, so is the test system. Most of the pages are generated by CGI scripts, and on the test system the header incorporates <BODY BGCOLOR=#FFD0D0> generating a puce background which warns people of the test environment. I can easily change this to inline CSS, but I'd prefer to use an external stylesheet. I could use different stylesheets for the test and production systems (and probably will, so I can test the effects of changes in the stylesheet itself) but I started to wonder if there were any way within CSS of setting the background colour based on the host. One great advantage of a stylesheet which is sensitive to the host is that it would solve the problem of having static HTML pages which changed their background colour based on which host was being used. |
![]() |
| Thread Tools | |
| Display Modes | |
| |