If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / Can't align 'editable sidebox' to bottom of sidebox column

Can't align 'editable sidebox' to bottom of sidebox column

Locked

Started by simon1066 on 28 Oct 2009, 12:17 PM · Views: 1,216

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Oct 2009, 12:17 PM
#1
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Can't align 'editable sidebox' to bottom of sidebox column

I've been trying this for ages, to no avail.

I want to add a new box to the bottom of my sidebox column, I've tried 'editable sidebox, 'blanksidebox' and 'logo sidebox' so the problem is not in the mod - more to do with the stylesheet I feel. It's easy to make it appear below the last sidebox e.g. banners but I can't isolate and move this extra sidebox to the bottom.

I've tried position: absolute; & bottom: 1px; in #editablesidebox, this just moves it 'up!' a degree rather than to the bottom.

A link to the site is here. You will see that I have put the paypal logo as a 'background' but I really want to put it in a sidebox along with the 'Shopmania' logo and have both at the bottom of the column.

Any ideas?

Cheers

Simon

Simon

28 Oct 2009, 3:27 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Can't align 'editable sidebox' to bottom of sidebox column

That is a limitation of div-based styling - it is not possible to make a div stretch vertically to match a neighbor's height.

In this case, you can use absolute positioning to locate the sidebox. Find #mainWrapper { in your stylesheet and add to it

position: relative;

Find #navColumnOneWrapper and add to it

margin-bottom: 250px;

Then add a new rule:```
#editablesidebox {
position: absolute;
bottom: 200px;
}

If you want to add the Paypal logo to the sidebox, adjust the numbers accordingly.

This will take the sidebox out of the layout flow and locate it in terms of its positioning context, defined to be #mainWrapper.
If the page is short enough that the sidebar reaches the bottom, the margin-bottom is needed to keep the rest of the sidebar contents from overrunning the sidebox, because the sidebox no longer holds its own space in the layout.
28 Oct 2009, 5:12 PM
#3
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Can't align 'editable sidebox' to bottom of sidebox column

I see, thanks Glenn,

I understand now, will try it out.

Thank you for taking the time to reply.

Cheers

Simon

Simon