HTML and CSS Reference
In-Depth Information
# <!--#include file="<path/to/file.css " -->
# <!--#include file="<path/to/
another-file.css>" -->
As I mentioned earlier, doing this will make Apache slower to respond to these re-
quests. You should be using a build script to concatenate files (we will look into the
build script in Chapter 7 , Automate Deployment with the Build Script ). So uncom-
ment this setting only if you have no other choice.
Stopping screen flicker in IE on CSS rollovers
When you use background images that change on hovering over a link, you will see
a flicker in IE when this occurs. You can prevent this by changing the following lines
in the .htaccess file from:
# BrowserMatch "MSIE" brokenvary=1
# BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
# BrowserMatch "Opera" !brokenvary
# SetEnvIfbrokenvary 1 force-no-vary
To the following code snippet:
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIfbrokenvary 1 force-no-vary
Preventing SSL certificate warnings
If you want to serve your site only on a secured connection, you need to obtain a
Secure Sockets Layer ( SSL ) certificate that browsers will use to identify your web-
site. If the domain on the certificate does not match the domain on the incoming
request—, for example, you had a SSL certificate for ht-
tps://secure.example.com , and the assets that are being loaded on the page
hosted on that domain are served from https://example.com , but all of the files
Search WWH ::




Custom Search