PDA

Zobacz pełną wersję : Prawdopodobnie błąd w joomli, albo szablonie.



haxigi
09-11-2009, 15:51
Witam. Nie rozumiem dlaczego tak się dzieje, ale gdy dodaję nowy moduł, wypełniając go rotatorem zdjęć flash o kodzie:

<div id="container22"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this rotator.</div>
<p>
<script src="swfobject.js" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
var s1 = new SWFObject("imagerotator.swf","rotator","150","150","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","madrid.xml");
s1.addVariable("width","150");
s1.addVariable("height","150");
s1.write("container");
// ]]></script>
</p>Strona się knoci i wygląda tak:
http://i10.photobucket.com/albums/a137/haxigi/Beztytuu-32.jpg

A powinna wyglądać tak:
http://i10.photobucket.com/albums/a137/haxigi/Beztytuu2-4.jpg

Przy okazji jak wycentrować treść w module gości na stronie i logowania (strasznie blisko lewej krawędzi są :/ )

Dodam, że templatka jest pod joomle 1.5

adres strony: korncenter.eu/joomla
kod css:

/*Razordark Style Sheet 2009 by www.razortemplates.com */


img {
border: 0;
}
body {
font-family: Tahoma, Arial;
line-height: 1.5em;
margin: 0;
padding: 0;
font-size: 11px;
color: #E9E9E9;
background-color: #000;
background-image: url(../images/page-bg2.jpg);
background-repeat: repeat;
background-position: top;
}
.floatleft {
float: left;
}
.floatright {
float: right;
}
.floatcenter {
float: none;
}
.clear {
clear: both;
}
a:link, a:visited {
text-decoration: none;
font-weight: normal;
color: red;
text-align: left;
}
h1 {
color: #E9E9E9;
font-style: normal;
font-size: medium;
}
h2 {
color: #E9E9E9;
font-weight: lighter;
font-style: normal;
font-size: large;
padding-bottom: 2px;
}
h3 {
color: #171717;
font-weight: lighter;
padding-left: 10px;
padding-top: 6px;
padding-bottom: 6px;
font-size: medium;
background-color: #2E2E2E;
}

div.hr {
height: 6px;
background: url('../images/footer-line.png');
}
div.hr hr {
display: none;
}

#container {
width:950px;
margin: auto;
text-align: left;
}

#content {
width: 950px;
margin-top: 20px;
text-align: left;
}

#nopad {
width: 950px;
margin: auto;
text-align: left;
}
#header {
text-align: center;
height: 100px;
}
#spacer {
text-align: center;
height: 40px;
}
#logo {
height: 35px;
margin-top: 0px;
margin-bottom: 30px;
}
#menu {
font-size: 14px;
text-align: right;
height: 40px;
width: 100%;
margin-top: 28px;
background-image: url(../images/menubg.jpg);
background-position: top;
background-repeat: repeat-x;
}

#login {
text-align: left;
height: 33px;
width: 100%;
background-color: #FFA100;
}

#left {
width: 192px;
margin: none;
}
#right {
width: 250px;
margin: none;
}

#line {
float: none;
width: 100%;
height: 6px;
margin-top: 10px;
margin-bottom: 10px;
background-image: url(../images/footer-line.png);
background-repeat: repeat-x;
}
#footer {
float: none;
width: 950px;
height: 61px;
text-align: left;
padding: 5px;
margin: auto;
margin-top: 15px;
margin-bottom: 80px;
text-align: left;
background-image: url(../images/footer-bg.png);
background-position: top;
background-repeat: no-repeat;
}
#top {
width: 100%;
margin-bottom: 0px;
}

#component {
width: 95%;
color: #fff;
float: none;
text-align: left;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
margin: auto;
background-color: #1B1B1B;
}

/*Start the Text Style Class*/
.clear {
clear: both;
}
.overall {
background-color: #1C1E4E;
}

.li {
list-style-type: none;
}

.contentpaneopen{
padding: 0px;
border: none;
}

.contentheading {
color: #fff;
padding-left: 0px;
padding-top: 15px;
padding-bottom: 6px;
font-size: medium;
margin-top: 16px;
background-color: #1B1B1B;
margin-bottom: 16px;
}

.componentheading {
color: #fff;
padding-left: 10px;
padding-top: 6px;
padding-bottom: 6px;
font-size: medium;
background-color: #2E2E2E;
margin-top: 16px;
margin-bottom: 16px;
}

.h1title {
color: #383838;
font-size: 30px;
margin-top: 16px;
float: left;
}

.input{
border: 0px;
}

.createdate{
color: #fff;
font-weight: lighter;
font-style: normal;
font-size: 10px;
text-align: left;
}

.small {
color: gray;
font-weight: lighter;
font-style: normal;
font-size: 11px;
text-align: left;
}

.separator {
}

.moduletable_menu {
background-color: #1B1B1B;
padding-bottom: 10px;
}

.moduletable{
background-color: #1B1B1B;
padding-bottom: 10px;

}

/*Start the News Module Class*/

.moduletablenews{
width: 270px;
list-style-type: none;
}

.mainlevel{
width: 100%;
color: #fff;
font-weight: lighter;
padding-left: 20px;
padding-top: 3px;
padding-bottom: 3px;
font-size: 11px;

}

.mainlevel: link{
color: #fff;
font-weight: lighter;
padding-left: 10px;
font-size: 18px;
background-color: #fff;
}

.moduletable_text{
background-color: White;
padding-bottom: 10px;

}

.banneritem_text{
color: #000;
background-color: White;
padding-left: 10px;

}

.bannerheader{
color: #000;
background-color: White;
padding-left: 10px;

}