Jak w temacie. Chcę aby w tym szablonie div z zawartością strony i innym tłem rozciągał się do samego dołu strony, gdzie jest stopka.
Bardzo dobrze wszystko się rozciąga gdy zawartość strony jest na tyle długa, że nie ma pustej przestrzeni, jednak gdy zawartość strony jest krótka i własnie potrzebne jest takie rozciągniecie to ukazuje się ono tylko w IE6. Proszę o pomoc.
<?php // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<!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" xml:lang="<?php echo $this->language; ?>"
lang="<?php echo $this->language; ?>" >
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template_css.css" type="text/css" />
<div id="wrapper"><div id="centercontent"> <div class="insidecenter"> TUTAJ JEST ZAWARTOSC
TUTAJ JEST HEADER Z LOGIEM
<div id="sitename"> tutaj wyświetla się nazwa strony
LEWA KOLUMNA
PRAWA KOLUMNA
TRESC STOPKI
* {
margin: 0;
}
body {
margin: 0 auto;
padding: 0px;
font-family: Tahoma;
font-size: 11px;
text-align: center;
background-color: #000000;
color: #949494;
height:100% ;
text-align:center;
}
html, body{height:100%;}
#wrapper {
position: relative;
width: 850px;
background-image: url('../images/all_bg.jpg');
background-repeat: repeat-y;
margin: 0 auto;
min-height: 100%;
height: auto !important;
height: 100%;
margin-bottom:-19px;
}
#header {
background-image: url('../images/top.jpg');
background-repeat: no-repeat;
position: absolute;
width: 822px;
height: 105px;
margin: 0 auto;
top: 0px;
padding-bottom:80px;
margin-left: -411px;
left:50%;
}
#leftcontent {
position: absolute;
height: auto;
left: 8px;
top: 130px;
width: 171px;
padding: 5px;
text-align: left;
}
#sitename {
position: absolute;
width: 822px;
height: 16px;
margin: 0 auto;
margin-top: 106px;
top: 1px;
background-image: url('../images/top_path_bg.jpg');
background-repeat: repeat-x;
text-align: left;
padding-top: 5px;
margin-left: -411px;
left:50%;
}
#centercontent {
text-align: left;
margin-left: 183px;
margin-right: 183px;
height:100%;
min-height:100%;
}
#rightcontent {
position: absolute;
right: 8px;
top: 130px;
width: 171px;
padding: 5px;
text-align: left;
}
.insidecenter {
text-align: center;
padding: 100px 0 0 0;
height:100%;
min-height:100%;
}
#main {
margin: 2px auto;
margin-top: 0px;
padding: 5px;
width: 463px;
background-color: #2D2D2D;
min-height: 100%;
height: auto !important;
height: 100%;
position:static;
}
.footer {
background-image: url('../images/footer_bg.jpg');
background-repeat: repeat-x;
height: 19px;
width: 822px;
margin: 0 auto;
margin-left: -411px;
left:50%;
position:relative;
text-align: center;
padding-top: 4px;
color: #454545;
bottom:0px;
}
#clearfooter {
height:19px;
}
To nie jest chyba taki prosty szablon i chyba nie będzie takie proste mi pomóc. Jeżeli kogos to jest to kawałek mojego szablonu pod joomle. Przykład online:
http://j15.dev.mamboassistance.com
Ten post edytował MOniToR 28.12.2007, 00:52:06