Witam, otóż moim problemem jest, że div sam zwiększa swoją wysokość, chociaż ma ją na twardo ustawioną w CSS. Powinien mieć 29px, a ma około dwa razy tyle...
Problem widać na smokeart.pl (specjalnie na czarno dałem background diva), żeby widzieć dobrze ;/
Poniżej index.php:
<?php 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; ?>" >
<title>smokeArt.pl - niecodzienna fotografia
</title> <jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/smokeart/css/css.css" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" /> <div id="calosc"><div id="header" onclick="location.href='http://www.smokeart.pl'" onmouseover="windows.status='smokeart.pl - galeria fotografii niecodziennej'"></div><div id="logo_place"><div id="logo"><div id="logo_tekst"><jdoc:include type="modules" name="logo_tekst" /></div><div id="logo_zmieniarka"><jdoc:include type="modules" name="zmieniarka" /></div></div><div id="menu"><jdoc:include type="modules" name="menu" /></div></div> <div id="tresc"><div id="box1"><jdoc:include type="modules" name="box1" /></div><div id="box2"><jdoc:include type="modules" name="box2" /></div></div><div id="news"><jdoc:include type="component" /></div><div id="sg"><div id="small_gallery"><jdoc:include type="modules" name="small_gallery" /></div></div> <div id="footer"><div id="footer_c"><div id="footer_l">smokeArt.pl
<br />galeria zdjęć niecodziennych
<br />kontakt@smokeart.pl
</div><div id="footer_r"><div id="fbtw"><img src="templates/smokeart/images/fb.png" /><img src="templates/smokeart/images/tw.png" /><br /></div><div id="wyk">wykonanie:
<a href="http://www.thespark.pl" alt="projektowanie stron internetowych">theSpark.pl
</a></div></div></div></div>
i css
* {
margin: 0;
padding: 0;
}
body {
background: url("../images/bg1.png") no-repeat #fff;
background-position: top;
font-family: verdana, tahoma,sans-serif;
font-size: 11px;
color: #c2c2c2;
}
#calosc {
width: 1000px;
}
#header {
width: 1000px;
height: 86px;
cursor: pointer;
}
a#header {
display: block;
}
#logo {
width: 1000px;
height: 375px;
}
#logo_place {
width: 1000px;
height: 404px;
display: block;
}
#logo_tekst {
font-family: tahoma, verdana, georgia;
text-shadow: 1px 1px 5px #000;
font-size: 14px;
width: 450px;
padding-top: 50px;
padding-left: 25px;
padding-right: 25px;
padding-bottom: 25px;
color: #e58ff8;
float: left;
height: 300px;
text-align: justify;
}
#logo_tekst h3 {
font-size: 48px;
color: #471155;
text-shadow: 1px 1px 1px #b939d4;
font-family: trebuchet, tahoma, verdana;
}
#logo_zmieniarka {
width: 450px;
padding-top: 50px;
padding-left: 25px;
padding-right: 25px;
padding-bottom: 25px;
float: right;
height: 300px;
}
#logo_tekst, #logo_zmieniarka {
display: inline;
}
#active_menu{
height: 29px;
text-decoration: none;
color: #521262;
background: url("../images/menu_1.png") no-repeat;
min-width: 157px;
}
#menu {
height: 29px;
text-align: left;
width: 1000px;
font-family: trebuchet, georgia, verdana;
text-transform: uppercase;
font-size: 14px;
display: inline-table;
background: #000;
}
#tresc {
font-family: verdana, tahoma, georgia;
width: 1000px;
color: #7d7d7d;
height: 271px;
font-size: 12px;
text-align: justify;
display: block;
text-shadow: 1px 1px 1px #d0d0d0;
}
#tresc h3 {
font-family: verdana;
font-size: 18px;
color: #000;
font-weight: normal;
}
#box1 {
width: 418px;
height: 201px;
padding-left: 47px;
padding-right: 35px;
padding-top: 25px;
float: left;
padding-bottom: 15px;
background: url("../images/box_bg.png") no-repeat;
display: block;
}
#box1, #box2 img {
border: 1px;
border-color: #e1e1e1;
}
#box2 {
width: 418px;
height: 201px;
padding-left: 47px;
padding-right: 35px;
padding-top: 25px;
float: right;
padding-bottom: 15px;
background: url("../images/box_bg.png") no-repeat;
display: block;
}
#box1, #box2 {
display: inline;
}
.mainlevel {
height: 29px;
margin-left: 10px;
color: #ecccfa;
background: url("../images/menu_2.png");
margin-right: 10px;
width: 157px;
height: 29px;
text-align: center;
background-repeat: no-repeat;
background-position: center;
text-decoration: none;
display: block;
}
#mainlevel {
display: inline;
text-decoration: none;
list-style-type: none;
height: 29px;
}
.moduletable h3 {
font-family:tahoma,sans-serif;
font-size: 11px;
margin-left: 10px;
}
#news {
font-family: verdana, tahoma, georgia;
width: 940;
padding-left: 35px;
padding-right: 25px;
padding-top: 15px;
padding-bottom: 15px;
color: #7d7d7d;
font-size: 13px;
text-align: justify;
display: block;
text-shadow: 1px 1px 1px #d0d0d0;
}
#news img {
border: 1;
border-color: #e1e1e1;
}
#sg {
padding-left: 50px;
padding-right: 50px;
width: 900px;
}
#small_gallery {
background: url("../images/img_min.png");
background-repeat: repeat-x;
height: 110px;
width: 900px;
padding-top: 10px;
padding-bottom: 10px;
display: block;
}
#small_gallery img {
display: block;
float: left;
margin-left: 15px;
margin-right: 15px;
margin-bottom: 5px;
margin-top: 5px;
height: 100px;
width: 150px;
}
#footer {
position: relative;
width: 100%;
background: url('../images/bg2.png') 0 0 repeat-x;
margin: 0;
padding: 0;
height: 175px;
color: #a583ad;
font-family: georgia, tahoma;
font-size: 13px;
}
#footer_c {
width: 1000px;
}
#footer_l {
width: 340px;
height: 100%;
text-align: left;
float: left;
margin-top: 15px;
margin-left: 160px;
}
#footer_r {
width: 450px;
height: 100%;
text-align: right;
float: right;
margin-top: 5px;
margin-right: 50px;
font-size: 10px;
}
#footer_r, #footer_l {
display: inline;
}
#fbtw {
height: 145px;
}
#wyk a {
color: #a583ad;
}
.createdate {
font-size: 10px;
}
#news h3 {
color: #480e58;
font-family: verdana;
font-weight: bold;
font-size: 24px;
}
.contentheading {
color: #480e58;
font-family: verdana;
font-weight: bold;
font-size: 24px;
}
Nie wiem, czy błędu nie mogę znaleźć przez późną porę czy przez głupotę... Tak czy siak będę wdzięczny za pomoc!
Dzięki wielkie ;-)