I am working on a Joomla website and I noticed that on some occasions my hole side is moving slightly to the side.
What I mean is the middle part just moves a couple of px to the side when I switch on some sub pages
and than press in the right Menu the Home Button you will see what I mean.
I hope someone can please tell me how to fix this.
Thx for your help in advanced
This is my template 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;
}
It’s the scrollbar, baby!
And by the way: I’m not getting this shift because my laptop screen is probably not as tall as your monitor, so the site is not ending before the viewport ends. This is a totally natural behavior and nobody will care, I promise.
My css template looks now like this:
I marked it in red where I put it. I also tried it putting it on the first position in the css.
But the scrollbar is not displaying
But joomla is somehow overwriting it with an inline style
If I deselect the inline style it is working.
Is there someway to force the template.css over the inline style
(I could not figure out where the inline is coming from)
I already tryed !important, but that works only in IE