Najpierw pokaże index:
- Kod: Zaznacz cały
<?xml version="1.0" encoding="ISO-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>Przykład dokumentu zgodnego z XHTML 1.0 Strict</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="top">
<img src="top.jpg" alt="top logo" />
</div>
<div class="top2">
Kamil Norwik<br />
gg: 2091<br />
email: norwik@gazeta.pl<br />
</div>
</body>
</html>
styl css :
- Kod: Zaznacz cały
body {
margin:0; padding-top:70px;
font: 12px Tahoma, Verdana, Arial, Sans, serif-sans;
text-align: left;
background-color: #252525;
)
div.top2 {
font:10px Verdana;
color: red;
}
Chciałbym żeby tekst zawarty w divie "top2" był wyswietlany na czerowno, i tak jest ale tylko pod IE6 a w firefoxie jest on czarny proszę o pomoc.