<?php body { margin: 0px 0px 0px 90px; padding: 0px; font-family: verdana, arial, helvetica, sans-serif; font-size: 10px; line-height: 20px; color: #000; background-color: #EEE; } h1 { font-size: 14px; font-weight: bold; color: #695; } h2 { font-size: 12px; font-weight: bold; color: #CC9900; } h3 { font-size: 10px; font-weight: bold; color: #CC9900; } .title { font-size: 20px; font-weight: bold; color: #695; border-left: 5px solid #F90; padding-left: 5px; } .subtitle { font-size: 11px; font-weight: bold; color: #333; border-left: 5px solid #FFF; padding-left: 5px; } #lpanel .heading { background-color: #94D400; font-size: 10px; font-weight: bold; color: #FFF; text-align: center; padding: 0px; margin-top: 0px; margin-bottom: 5px; } #lpanel a { color: #333; text-decoration: none; font-weight: bold; padding-left: 15px; background: url('images/b-1.gif') no-repeat center left; } #lpanel a:hover { color: #695; background: url('images/b-2.gif') no-repeat center left; } a { color: #695; text-decoration: none; padding: 1px; } a:hover { color: #666; background-color: #EEE; } img { float: right; padding-left: 10px; padding-right: 10px; } #header { width: 856px; height: 168px; margin: 4px 0px -16px -30px; padding: 10px; background-color: #FFF; } #title { position: absolute; top: 20px; left: 20px; padding: 10px; background-color: #FFF; } #lpanel { position: absolute; left: 73px; margin: 0px 0px 0px -13px; padding: 10px; background-color: #FFF; width: 161px; } #content { width: 671px; margin: 0px 0px 4px 155px; padding: 10px; background-color: #FFF; font-size: 11px; font-weight: normal; } #footer { width: 671px; margin: 0px 50px 0px 155px; padding: 10px; background-color: #FFF; text-align: right; } ?>
html:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <link rel="stylesheet" type="text/css" href="style.css" media="screen, print"> <meta name="keywords" content="części rolnicze, CLAAS, WELGER, maszyny rolnicze, Fendt, John Deere, traktor, KOPARKI, czesci do maszyn rolniczych, Ursus, Zetor, MF, Massey Ferguson, ZABAWKI, Krone, Kverneland, Lemken, Agroma"> <meta name="keyphrases" content="części rolnicze, CLAAS, WELGER, maszyny rolnicze, Fendt, John Deere, traktor, KOPARKI, czesci do maszyn rolniczych, Ursus, Zetor, MF, Massey Ferguson, ZABAWKI, Krone, Kverneland, Lemken, Agroma"> <meta name="description" content="Części rolnicze i maszyny rolnicze, CLAAS, WELGER, Fendt, John Deere, MF, Krone, Lemken, Rabewerk, Frost, Ursus, Zetor, Bizon, Zabawki i inne"> <meta name="language" content="pl, polski, polish"> <meta name="page-topic" content="Części i maszyny rolnicze"> <meta name="page-type" content="business, biznes"> <meta name="robots" content="index,follow"> <meta name="siteinfo" content="robots.txt"> <meta name="revisit-after" content="1 days"> <div id="header"> <object height="168" width="856"> <param name="movie" value="images/banner.swf"> <embed src="CZESCI%20ROLNICZE%20Claas,%20Welger,%20John%20Deere,%20Fendt,%20MF,%20Ursus/banner.swf" height="168" width="856"> </object> </div> <br style="top: auto;"> <div id="lpanel"> <font minmax_bound="true" size="2"> </strong> <font minmax_bound="true" size="2"> <br minmax_bound="true"> <br minmax_bound="true"> <br minmax_bound="true"> google_ad_client = "pub-7639359759728800"; google_ad_width = 125; google_ad_height = 125; google_ad_format = "125x125_as"; google_ad_type = "text_image"; google_ad_channel = "1641380093"; google_color_border = "FFFFFF"; google_color_bg = "FFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; </script><script type="text/javascript" src="CZESCI%20ROLNICZE%20Claas,%20Welger,%20John%20Deere,%20Fendt,%20MF,%20Ursus/show_ads.js"></script><iframe name="google_ads_frame" src="CZESCI%20ROLNICZE%20Claas,%20Welger,%20John%20Deere,%20Fendt,%20MF,%20Ursus/ads.htm" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="125" scrolling="no" width="125"></iframe> </div> <div id="content"> <strong> <!-- Tutaj zaczyna się treść --> <p><strong>Oferta naszej Firmy to szeroki asortyment części do <a title="Claas - części i maszyny rolnicze" alt="Claas - części i maszyny rolnicze" href="http://ste/">Claas</a>, <a title="CLAAS, WELGER - części rolnicze" alt="CLAAS, WELGER - części rolnicze" href="http://test">Welger</a>, <a title="John Deere części rolnicze" alt="John Deere części rolnicze" href="http://test/">John Deere</a>, <!-- Tutaj kończy się treść --> google_ad_client = "pub-7639359759728800"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel = "1641380093"; google_color_border = "FFFFFF"; google_color_bg = "FFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; </script><script type="text/javascript" src="CZESCI%20ROLNICZE%20Claas,%20Welger,%20John%20Deere,%20Fendt,%20MF,%20Ursus/show_ads.js"></script><iframe name="google_ads_frame" src="CZESCI%20ROLNICZE%20Claas,%20Welger,%20John%20Deere,%20Fendt,%20MF,%20Ursus/ads_002.htm" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="60" scrolling="no" width="468"></iframe> </div>
jak zrobić by na każdym monitorze strona była na środku ekranu, robiłem to i na moim monitorze było ok, ale już np na 21 cali pojawiało się na lewo, co dopisać w kodzie?