VOL. XVII-NO. 171 Template design is copyrighted,
Please do not copy.
FIVE CENTS

Tuesday, January 08, 2008

Why is my sidebar pushed to bottom?

Has your sidebar been pushed to bottom lately? this is a common problem with "fixed width" layouts on blogs/websites. This problem can occur of one of the following reasons:

A long word or a link on sidebar or "main div"(content div) or
an image that is wider than the fixed width of sidebar or main content

The "long text" problem usually occurs in IE. In order to fix the problem add the following style to your "main div" and sidebar

word-wrap: break-word;
overflow: hidden;

As for the Image problem, you will have to resize the image to fit the layout.

3 Comments:

Blogger .:Rhea:. said...

My html text reads:

#main-wrapper {
width: 410px;
float: $startSide;
word-wrap: break-word;
overflow: hidden;
}

#sidebar-wrapper {
width: 220px;
float: $endSide;
word-wrap: break-word;
overflow: hidden;
}

But I still have a problem with my sidebar being at the bottom. What can I do?

9:39 AM  
Blogger .:Rhea:. said...

My html text reads:

#main-wrapper {
width: 410px;
float: $startSide;
word-wrap: break-word;
overflow: hidden;
}

#sidebar-wrapper {
width: 220px;
float: $endSide;
word-wrap: break-word;
overflow: hidden;
}

...but I'm still having a problem with my sidebar being at the bottom of the page. What can I do??

9:41 AM  
Blogger Webmaster said...

The code looks okay, Maybe you have a large image on your sidebar or main div which is creating the sidebar to be pushed down.

7:05 PM  

Post a Comment

<< Home