Mam na głównej stronie w div="header" obrazek, chciałbym wstawić inne zdjecie div=lewy_obrazek które by zmieniało miejsce tylko w obrębie obszaru tego obrazka "header" i by w kazdej rozdzielczosci ekranu bylo w w tym samym miejscu by sie nie rozjezdzało, obrazek chciałbym dodać w css jak mógłbym to zrobić czy ten nowy obrazek mam w div wstawić wogóle?
</head>
<body id="page_bg">
<div id="wrapper">
<div id="lewy_obraz">
<div id="header">
<div class="logo">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<h1><a href="index.php">
<?php echo $mainframe->getCfg('sitename') ;?></a></h1>
</td>
</tr>
</table>
</div>
<div id="search"><jdoc:include type="modules" name="user4" /></div>
<div class="clr"></div>
<div class="newsflash<?php if(!$this->countModules('user1') and JRequest::getCmd('layout') != 'form') : ?> only<?php endif; ?>">
<jdoc:include type="modules" style="rounded" name="top" />
</div>
<div id="pillmenu">
<?php if($mtype != "module") :
else: ?>
<jdoc:include type="modules" name="user3" />
<?php endif; ?>
</div>
<div class="clr"></div>
<div class="cpathway"><jdoc:include type="module" name="breadcrumbs" /></div>
</div>
<div id="content">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<br />
<?php $sg = 'banner'; include "templates.php"; ?>
<br />
</div>
<?php endif; ?>
<?php if($this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php elseif($this->countModules('left') and !$this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_left">
<?php elseif(!$this->countModules('left') and $this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn_right">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
<div id="content_b">
<div id="footer">
<jdoc:include type="modules" name="debug" />
<?php $sg = ''; include "templates.php"; ?>
<a href="http://validator.w3.org/check/referer">valid xhtml</a>
<a href="http://jigsaw.w3.org/css-validator/check/referer">valid css</a>
</div>
</div>
<div id="prawy_obraz">
</div>
</div>
</div>
</body>
</html>
Ten post edytował Darek82 4.05.2010, 17:21:12