czupkolandja
07-05-2012, 14:23
Witam
Tworzę nowy szablon, i mój problem polega na tym że;
Dodałem kilka obrazów do headera/nagłówka tj. logo, napis, obrazek. W następujący sposób
<div id="header" style="background: url(templates/<?php echo $this->template ?>/images/header.png) repeat-x; height: 220px;">
<div id="header_foto" style="background: url(templates/<?php echo $this->template ?>/images/header_foto.png) no-repeat 0% 100% transparent; height: 220px;">
<div id="header_logo" style="background: url(templates/<?php echo $this->template ?>/images/header_logo.png) no-repeat 100% 0%; transparent; height: 100px;">
<div id="header_zm" style="background: url(templates/<?php echo $this->template ?>/images/header_zm.png) no-repeat 100% 0%; height: 100px;">
<jdoc:include type="modules" name="top" style="xhtml" />
</div>
</div>
</div>
</div> <!--end header-->
I teraz zaczyna się problem, Chciałem przesunąć pozycję "header_zm" w dół, ale po dodaniu w css margin-top przesuwa się cały header. Co zrobić aby przesunął się tylko interesujący mnie obraz?
Tworzę nowy szablon, i mój problem polega na tym że;
Dodałem kilka obrazów do headera/nagłówka tj. logo, napis, obrazek. W następujący sposób
<div id="header" style="background: url(templates/<?php echo $this->template ?>/images/header.png) repeat-x; height: 220px;">
<div id="header_foto" style="background: url(templates/<?php echo $this->template ?>/images/header_foto.png) no-repeat 0% 100% transparent; height: 220px;">
<div id="header_logo" style="background: url(templates/<?php echo $this->template ?>/images/header_logo.png) no-repeat 100% 0%; transparent; height: 100px;">
<div id="header_zm" style="background: url(templates/<?php echo $this->template ?>/images/header_zm.png) no-repeat 100% 0%; height: 100px;">
<jdoc:include type="modules" name="top" style="xhtml" />
</div>
</div>
</div>
</div> <!--end header-->
I teraz zaczyna się problem, Chciałem przesunąć pozycję "header_zm" w dół, ale po dodaniu w css margin-top przesuwa się cały header. Co zrobić aby przesunął się tylko interesujący mnie obraz?