Hello,
Ich bin gerade dabei eine Seite mit Joomla zu erstellen und musste dabei feststellen das bei ein paar seiten wechseln die
gesamte Webseite leicht zur seite wandert. An joomla selbst kann es eignetlich ja nciht liegen sondern irgendwo an meinem css code.
Als Beispiel wenn man erst hierauf geht: http://awbg.gieseke-lemfoerde.de/index.php/unse…l-unser-service
und dann zurück über das Menü auf Home sieht man das Phänomen
Vielen Dank im vorraus schon mal für eure Hilfe
EDIT: Ok ich weiß jetzt immerhin warum sich die seite bewegt. Es kommt bei seiten mit mehr Text durch die Seitliche scrollbar
Mein CSS code
Code
.componentheading {
font-size:20px;
}
.contentheading {
font-size:20px;
color:#77aa35;
padding-right: 15px;
text-shadow:#333 4px 4px 4px;
margin-right:15px;
}
.contentheading a {
}
body {
font: 80%/1.4 Verdana, Arial, Helvetica, sans-serif;
background-color: #F0FFFF;
margin: 0;
padding: 0;
color: #000;
}
/* ~~ Element/tag selectors ~~ */
ul, ol, dl {
padding: 0;
margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
margin-top: 0;
padding-right: 15px;
padding-left: 15px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a img {
border: none;
}
a:link {
color: #909090;
text-decoration: underline;
}
a:visited {
color: #6E6C64;
text-decoration: underline;
}
a:hover, a:active, a:focus {
text-decoration: none;
}
/* ~~this fixed width container surrounds the other divs~~ */
.container {
width: 960px;
background-color: #FFF;
margin: 0 auto;
}
.logo {
width: 215px;
height: 137px;
float: left;
}
.headerTop {
width: 745px;
height: 50px;
float: right;
}
.headerBottem {
width: 745px;
height: 30px;
float: right;
}
.sidebar1 {
width: 215px;
padding-bottom: 10px;
float: left;
}
.content {
padding: 10px 0;
width: 745px;
float: right;
}
.textlauf {
padding: 0px 0;
width: 745px;
float: right;
} p.adr { color:#ffffff; }
/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol {
padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
}
/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
ul.nav {
list-style: none; /* this removes the list marker */
border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
margin-bottom: 15px; /* this creates the space between the navigation on the content below */
}
ul.nav li {
border-bottom: 1px solid #666; /* this creates the button separation */
}
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
padding: 5px 5px 5px 15px;
display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
width: 160px; /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
text-decoration: none;
background-color: #C6D580;
}
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
background-color: #ADB96E;
color: #FFF;
}
/* ~~ The footer ~~ */
.footertop{
padding: 2px 0;
position: relative;
clear: both;
height: 0px;
background-color: #c1c1c1;
}
.footer{
padding: 10px 0;
position: relative;
clear: both;
background-color: #FFFFFF;
}
.footerright {
position: relative;
width: 745px;
height: 80px;
float: right;
background-color: #FFFFFF;
}
.footerleft {
padding-top: 5px; width: 215px;
height: 80px;
float: left;
position: relative;
font-size:80%;
background-color: #282E7D;
}
/* ~~ miscellaneous float/clear classes ~~ */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
Alles anzeigen
Der HTML bzw php code vom Tempalte
HTML
<?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">
<head>
<jdoc:include type="head"/>
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template.css" type="text/css"/>
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/navigation.css" type="text/css"/>
<link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/components.css" type="text/css"/>
</head>
<body>
<div class="container">
<div class="logo">
<img src="/images/AWBG_small.png" width="215" height="137" alt="Logo" /></div>
<div class="headerTop">
<jdoc:include type="modules" name="headerTop" style="xhtml"/>
</div>
<div class="headerBottem">
<jdoc:include type="modules" name="headerBottem" style="xhtml"/>
</div>
<div class="textlauf">
<jdoc:include type="modules" name="textlauf" style="xhtml"/></div>
<div class="content">
<jdoc:include type="message"/>
<jdoc:include type="component"/>
</div>
<div class="sidebar1">
<jdoc:include type="modules" name="navigation" style="xhtml" />
<img src="/images/sidebarende.png" alt="sidebarend"/>
</div>
<div class="footer">
<div class="footertop"></div>
<div class="footerright">
<jdoc:include type="modules" name="footer" style="xhtml"/>
</div>
<div class="footerleft">
<p class="adr"><a href="https://maps.google.com/maps?q=Gut-Steinbrink-Stra%C3%9Fe+8,+Stemwede,+Germany&hl=en&ie=UTF8&ll=52.405175,8.397557&spn=0.005092,0.005751&sll=52.4167,8.43333&sspn=0.325823,0.368042&t=h&hnear=Gut-Steinbrink-Stra%C3%9Fe+8,+Arrenkamp+32351+Stemwede,+Detmold,+Nordrhein-Westfalen,+Germany&z=17&iwloc=r0" target="_blank">Ihr Weg zu uns!</a><br/> Mo-Fr. 8:00 - 17:00 Uhr<br/>
Tel: 05474-2056-0<br /> Fax: 05474-2056-20<br/>
Email: <a href="mailto:info@awbg.de">info@awbg.de</a></p>
<br/>
</div>
</div>
</div>
</body>
</html>
Alles anzeigen