Od dłuższego czasu nie robiłem szablonu html + css i nadając divy i opisując je w css robię coś źle, a nie pamiętam co to za błąd, że wszystkie divy nachodzą na siebie. Tak jakby nie trzymały się swoich rozmiarów, bo zmniejszają się i nachodzą na siebie. Bardzo proszę o pomoc.
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <link rel="stylesheet" type="text/css" href="css/template.css" /> </head> <body> <div id="all"> <div id="header"> <div id="top"> <div id="top_menu"> dsa </div> <div id="logo_panel"> <div id="logo"> sad </div> <div id="slideshow"> sda </div> </div> <div id="under_menu_bar"> </div> </div> </div> <div id="panel_menu"> <div id="pasek_menu_top"> </div> <div id="menu_gorne"> </div> <div id="between_menu"> </div> <div id="menu_dolne"> </div> <div id="pasek_menu_down"> </div> </div> <div id="central_content"> <div id="content_in"> <div id="whereami"> </div> <div id="modules"> <div id="left_module"> </div> <div id="right_module"> </div> </div> <div id="content"> </div> </div> <div id="banners"> <div id="small_banner"> </div> <div id="bigger_banner"> </div> <div id="goto_the_top"> </div> </div> <div id="footer"> <div id="footer_inside"> </div> </div> </div> </body> </html>
Kod CSS:
* { margin: 0px; padding: 0px; border: none; } all { margin: 0 auto; width: 100%; height: 100%; } #header { background: url(../images/images_01.gif); width: 754px; height 84px; clear: both; } #top { width: 754px; height 84px; } #top_menu { background: url(../images/images_02.gif); width: 754px; height 27px; } #logo_panel { width: 754px; height 50px; } #logo { background: url(../images/images_04.gif); width: 493px; height 50px; } #slideshow { background: url(../images/images_05.gif); width: 261px; height 50px; float: left; } #under_menu_bar { background: url(../images/images_06.gif); width: 754px; height 7px; clear: both; } #panel_menu { background: url(../images/images_07.gif); width: 100%; height 63px; clear: both; } #pasek_menu_top { background: url(../images/images_08.gif); width: 754px; height 12px; } #menu_gorne { background: url(../images/images_10.gif); width: 754px; height 19px; } #between_menu { background: url(../images/images_11.gif); width: 754px; height 1px; } #menu_dolne { background: url(../images/images_12.gif); width: 754px; height 19px; } #pasek_menu_down { background: url(../images/images_13.gif); width: 754px; height 12px; } #central_content { width: 100%; height auto; clear: both; } #centent_in { width: 754px; height auto; min-height: 400px; } #whereami { background: url(../images/images_15.gif); width: 754px; height 38px; } #modules { width: 754px; height 428px; } #left_module { background: url(../images/images_17.gif); width: 376px; height 428px; } #right_module { background: url(../images/images_18.gif); width: 378px; height 428px; } #content { background: url(../images/images_19.gif); width: 754px; height auto; min-height: 200px; } #banners { width: 754px; height 190px; } #small_banner { background: url(../images/images_20.gif); width: 754px; height 64px; } #bigger_banner { background: url(../images/images_21.gif); width: 754px; height 92px; } #goto_the_top { background: url(../images/images_22.gif); width: 754px; height 34px; } #footer { background: url(../images/images_23.gif); width: 100%; height 36px; clear: both; } #footer_inside { width: 754; height 36px; }