Wczoraj przeczytałem kurs XHTML + CSS i dzisiaj napisałem 2 stronkę, proszę o porady optymalizacyjne lub poprawę kodu.
<!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"> <head> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="revisit-after" content="30 days" /> <meta http-equiv="content-language" content="pl" /> <meta name="Author" content="" /> <link rel="stylesheet" href="css/style.css" type="text/css" /> </head> <body> <!-- MENU START --> <div id="menu"> <ul> </ul> </div> <!-- MENU KONIEC --> <!-- HEADER START --> <div id="header"> </div> <!-- HEADER KONIEC --> <!-- FRAME START --> <div id="frame"> <div id='tresc'> SLOGAN - SLOGAN - SLOGAN - SLOGAN -<br /> SLOGAN - SLOGAN - SLOGAN - SLOGAN -<br /> SLOGAN - SLOGAN - SLOGAN - SLOGAN -<br /> SLOGAN - SLOGAN - SLOGAN - SLOGAN - </div> <div id="sms"> Fax       : <strong class="prz">XXX-XXX-XXX</strong></div> <strong class="h1">Adres</strong><br /> <div class='text'>Ulica     : <strong class="prz">Ulica</strong><br /> Kod pocztowy: <strong class="prz">XX-XXX</strong><br /> Miasto  : <strong class="prz">Miejscowość</strong><br /> Regon  : <strong class="prz">Regon</strong><br /> </div> </div> </div> <!-- FRAME KONIEC --> <!-- SHADOW START --> <div id="shadow"></div> <!-- FRAME KONIEC --> <!-- FOOTER START --> <div id="footer"> <p>? 2010 Przeprowadzki. Powered by Daniel Korytek.</p> </div> <!-- FOOTER KONIEC --> </body> </html>
body { width: 819px; padding: 0; margin: 0 auto; font-family: Verdana; font-size: 13px; color: #737373; line-height: 19px; background: url(../img/background.png) repeat #d2d2d2; } h1 { font-family: Georgia; font-size: 48px; font-weight: bold; font-style: italic; color: #7b4817; margin: 45px 0px 0px 260px; padding: 0; text-shadow: 1px 1px 0px #ffffff; position: absolute; } h2 { font-family: Georgia; font-size: 30px; font-weight: bold; font-style: italic; color: #7f7f7f; margin: 95px 0px 0px 260px; padding: 0; text-shadow: 1px 1px 0px #ffffff; position: absolute; } p { margin: 0; padding: 0; } a { color: #505050; margin: 0; padding: 0; text-decoration: underline; } a:hover { color: #737373; margin: 0; padding: 0; text-decoration: none; } img { border: 0; } #menu { width: 819px; height: 40px; margin: 0; padding: 0; } #menu ul { margin: 0; padding: 0; list-style: none; float: right; } #menu ul li { float: left; padding: 0 18px 0 0; } #menu ul li a { font-size: 18px; margin: 0; padding: 0; float: left; display: block; font-family: Georgia; font-style: italic; color: #505050; line-height: 37px; text-shadow: 1px 1px 0px #ffffff; text-decoration: none; } #menu ul li a:hover { color: #737373; } #header { width: 819px; height: 153px; margin: 0; padding: 0; } .suitcase { width: 244px; height: 137px; margin: 16px 0px 0px 0px; padding: 0; position: absolute; background: url(../img/suitcase.png) no-repeat; } #frame { width: 819px; height: 369px; margin: 0; padding: 0; background: url(../img/frame.png) no-repeat; } #sms .h1 { font-size : 14px; text-align: center; padding-left : 66px; color: #7b4817; } #formularz .button { margin-top:10px; height: 35px; width: auto; background-color: #70A5FF; -moz-border-radius:15px; border-radius:15px 15px; -khtml-border-radius:15px; -icab-border-radius:15px; -webkit-border-radius:15px; -khtml-border-radius:15px; } #tresc { float:left; padding-top:100px; padding-left:50px; width : 400px; } #sms { float:right; margin-right: 100px; margin-top:100px; width :200px; height:auto; border-style:dashed; border-width : 2px; -moz-border-radius:15px; border-radius:15px 15px; -khtml-border-radius:15px; -icab-border-radius:15px; -webkit-border-radius:15px; -khtml-border-radius:15px; } #sms .text { padding-left:13px; } #sms .prz { color: #7b4817; } #regulamin{ float:right; } #cu3er-container { width: 798px; height: 348px; margin: 10px; padding: 0; outline: 0; } #shadow { width: 819px; height: 70px; margin: 0; padding: 0; background: url(../img/shadow.png) no-repeat; } #footer { width: 819px; height: 70px; margin: 0; padding: 0; } #footer p { text-align: center; padding: 25px; text-shadow: 1px 1px 0px #ffffff; }
Demo :
Kod
http://transport.redhosti.pl/dizajn