Alternativní styly
Možnost připojení více stylů pro prohlížeče, které umí přepnout mezi více styly.
Pro správnou funkci si vytvořte CSS soubory podobné těmto. Zde si můžete prohlédnout výsledek.
Toto řešení publikoval Mike Hall. Bližší popis najdete v článku Alternate Style Sheets and Media Types. Další možnosti najdete v sérii článků Alternativní styly.
XHTML
<html>
<head>
<meta http-equiv=“Content-Language“ content=“cs“/>
<meta http-equiv=“Content-Type“ content=“text/html; charset=windows-1250″/>
<title>Test Alternativní styly</title>
<link href=“persistent.css“ type=“text/css“ rel=“stylesheet“>
<link href=“preferred.css“ type=“text/css“ rel=“stylesheet“
title=“Preferred“>
<link href=“cernobila.css“ type=“text/css“ rel=“alternate stylesheet“
title=“Cernobila“>
<link href=“bilocerna.css“ type=“text/css“ rel=“alternate stylesheet“
title=“Bilocerna“>
</head>
<body>
Lorem ipsum dolor sit amet…
</body>
</html>