Mam mały problem - różne przeglądarki różnie interpretują czcionki, a raczej tego nie robią. Jedynie poprawnie wyświetla wszystko Google Chrome i IE 9, w FF i Operze czcionka przyjmuje wartość/styl domyślny dla każdej z nich.
Rozchodzi się głównie o to:
body { background: #fff; font: .74em "Trebuchet MS" Verdana, Arial, sans-serif; line-height: 1.5em; } .header { height: 100px; background: #85ACF7 url('images/hidr.jpg'); } .header h1 { padding-left: 17px; padding-top: 22px; font-size: 22px; color: #FFF; } .header h1 a { font-size: 22px; color: #FFF; text-decoration: none;} .header h2 { padding-left: 17px; padding-top: 0px; font-size: 17px; color: #FFF; }
Opera i FF omijają wszystkie czcionki i ustawiają swoją (Times New Roman).
Kod przykładowej strony:
<!DOCTYPE html> <HTML> <head> <meta http-equiv="Content-Language" content="English" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> </head> <body> <div id="wrap"> <div id="content"> <div class="header"> </div> <div class="breadcrumbs"> </div> <div class="middle"> <form action=sprawdzenie.php method=post> <div class="gtable"> <TABLE> </form> </TABLE> </div> </div> <div class="right"> <ul> </ul> </div> </div> </div> <div id="footer"> </div> </body> </html>