html,body { background-color:#055d90; margin: 0 auto; text-align:center; } #con { width:875px; margin-top: auto; text-align: center; } #menu { width:875px; height:40px; position:absolute; margin-top:0px; padding: 0; } #header { background-image:url(images/header.jpg); width:875px; height:240px; position:absolute; margin-top:40px; padding: 0; } #menuu { width:875px; height:50px; position:absolute; margin-top:280px; border: 0px; padding: 0; } #menuuu { width:875px; height:261px; position:absolute; margin-top:330px; border: 0px; padding: 0; } #tresc { background-image:url(images/tresc.jpg); background-repeat:repeat-y; margin-top: 591px; margin-left:0px; margin-bottom:4px; width:875px; height:auto; position:absolute; font-family:Arial, Helvetica, sans-serif; font-size:9px; border:0px; padding: 0; } #stopka { background-image: url(images/stopka.jpg); width:875px; height:81px; bottom:0px; margin-top:auto; margin-left:0px; border:0px; padding: 0; } #lewy { background-color:#ffffff; font-size:12px; padding-left:13px; width:800px; text-align:justify; margin-left:5px; margin-top: 5px; padding: 0; } .kwicks { list-style-type: none; position: relative; margin: 0; padding: 0; background-image:url(no_flicker.png); } .kwicks li{ display: block; overflow: hidden; padding: 0; cursor: pointer; float: left; width: 125px; height: 40px; margin-right: 0px; background-image:url(menu.png); background-repeat:no-repeat; } .kwicks a{ display:block; height:40px; text-indent:-9999px; outline:none; } #kwick1 { background-position:0px 0px; } #kwick2 { background-position:-200px 0px; } #kwick3 { background-position:-400px 0px; } #kwick4 { background-position:-600px 0px; } #kwick5 { background-position:-800px 0px; } #kwick6 { background-position:-1000px 0px; } #kwick7 { background-position:-1200px 0px; } #kwick1.active, #kwick1:hover { background-position: 0 bottom; } #kwick2.active, #kwick2:hover{ background-position: -200px bottom; } #kwick3.active, #kwick3:hover { background-position: -400px bottom; } #kwick4.active, #kwick4:hover { background-position: -600px bottom; } #kwick5.active, #kwick5:hover { background-position: -800px bottom; } #kwick6.active, #kwick6:hover { background-position: -1000px bottom; } #kwick7.active, #kwick7:hover { background-position: -1200px bottom; }
<!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"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <link rel="Stylesheet" type="text/css" href="style.css" /> <script type='text/javascript' src='jquery-1.2.6.js'> </script> <script src="kwicks.js" type="text/javascript"> </script> <script src="custom.js" type="text/javascript"> </script> </head> <body> <div id="con"> <div id="menu"> <ul class="kwicks" id="kwi"> </ul> </div> <div id="tresc"> <div id="lewy"> <?php include('newsy.php'); ?> </table> </div> </div> </div> </body> </html>
Czemu nie mogę wyśrodkować strony za pomocą text-align? Który element koliduje?
