Scusami. Ti posto l'esempio completo che ho:
La pagina di esempio:
codice:
<!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" lang="it" xml:lang="it">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="stile.css" type="text/css" media="screen" />
</head>
<body>
Testo
</body>
</html>
Il css esterno
codice:
body, html{
width: 100%;
height: 100%;
margin: 0;
padding: 0
}
html {
color: #666;
margin: 0;
padding: 0;
background: #FFF url(file/sfondo.jpg) center bottom no-repeat;
text-align:center;
}