Mam problem bo zrobiłem 2 div-y w środku div-a i gdy zrobię margin-top dla jednego 10 a dla drugiego 30 to ten drugi nie ma 30 a ma np 50 ;/
Zobaczcie sami ten zegarek co uciekł do drugi div a pierwszy to w zegarku ten napis so
>>>>Link do strony<<<<
może jakieś warstwy coś... proszę o pomoc
Strona:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> body { background-color: #070707; font-family:Verdana, Arial, Helvetica, sans-serif; } #strona { margin : auto; padding : 0px; width : 941px; } #heder1 { margin : auto; padding : 0px; width : 941px; height : 49px; float : left; background : url(images/1_02.jpg) } #heder2 { margin : auto; padding : 0px; width : 941px; height : 243px; float : left; background : url(images/1_04.jpg) } .zegarek { width : 110px; height : 50px; margin-left :730px; margin-top :42px; padding : 0px; float : left; display: inline; } .data { width : 32px; height : 30px; margin-left :850px; margin-top :25px; padding : 0px; float : left; display: inline; background-color: #070707; } </style> </head> <body> <div id="strona"> <div id="heder2"> <div class="data"> <?php $dni = array( 0 => '<img src="images/dni_tygodnia/7.jpg"/>', 1 => '<img src="images/dni_tygodnia/1.jpg"/>', 2 => '<img src="images/dni_tygodnia/2.jpg"/>', 3 => '<img src="images/dni_tygodnia/3.jpg"/>', 4 => '<img src="images/dni_tygodnia/4.jpg"/>', 5 => '<img src="images/dni_tygodnia/5.jpg"/>', 6 => '<img src="images/dni_tygodnia/6.jpg"/>'); $data = $dni[date('w')]; echo $data ?> </div> <div class="zegarek"> <? $aData = date("Hi"); ?> </div> </div> </div> </body> </html>