<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Description" content="<?=$desc?>" /> <meta name="Keywords" content="<?=$keywords?>" /> <meta name="Generator" content="<?=$generator?>" /> <meta name="Robots" content="<?=$robots?>" /> <meta name="Author" content="<?=$autor?>" /> <title><?=$tytul_strony?></title> </head> <body> <h1><?=$nazwa_portalu?></h1> <div id="side"> <h3>Menu</h3> <ul> <?php $cms->menu('menu'); ?> </ul> </div> <div id="content"> <h3><?=$tytul_tresc?></h3> <?=$tresc?> </div> </body> </html>
I w Firefoksie wywołany wygląda tak:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Description" content="sirostr CMS" /> <meta name="Keywords" content="sirostr CMS" /> <meta name="Generator" content="sirostr CMS" /> <meta name="Robots" content="all" /> <meta name="Author" content="sirostr" /> </head> <body> <div id="side"> <ul> </div> <div id="content"> </div> </body> </html>
A w Operze tak:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Description" content="sirostr CMS" /> <meta name="Keywords" content="sirostr CMS" /> <meta name="Generator" content="sirostr CMS" /> <meta name="Robots" content="all" /> <meta name="Author" content="sirostr" /> </head> <body> <div id="side"> <ul> </div> <div id="content"> </div> </body> </html>
Jak widać w Firefoksie po </title> jest niepotrzebny odstęp, przez co strona jest przesunięta w dół.
Czy ktoś mógłby mi wyjaśnić czemu tak się dzieje?