[SOLVED] drop a widget to the bottom of a sidebar
I've got a right sidebar with 4 widgets. I want the bottom widget to always appear at the bottom of the page, and not just below the 3rd widget. Of course if there is little info in the post area it has to fit just below the 3rd widget, but if the post area is longer I want the widget to move down also, so that the widget is always at the bottom of the page.
I have tried a lot of things, searched (again and again) in all the posibilites with CSS ans also found no solution in this forum. Is there a solution to this? Who can help me? |
Have you experimented with absolute positioning for the bottom widget.
|
Sure.
I just checked again. I have Code:
#text-2 { |
Just did some more research and concluded that it cannot be done (but I am open to suggestions)...
In this case I wanted to have a tiny image in the right-hand side of the website. In stead of putting it in a widget I now put it in the footer and with some padding/margins and an extra blank line at the end, it is in a postion that is about right... Fixed it with a workaround, but I am not complaining. It leaves the original question open though... |
you could possibly do it via a jscript. This is how the footer option 'Sticky footer on short pages?' works. You can look at the code in js.php
|
Ok, I'll look into this. More for future reasons than for the current problem. I fixed this with a workaround (see my reply above).
Thanx for the advice though! |
I just tried what I suggested and it worked fine. Here is what I used for my test in CSS Inserts.
HTML Code:
#text-2 { |
#Imilesw:
Thanks for your reply. Your code seems to place the widget at a fixed point in the right sidebar, independent of the length of the page. If I have a page that is not too long it can be outside the frame of the page, and if I have a long page the widget does not sit at the bottom of the sidebar. I guess that is what absolute positioning does. The widget needs to sit just on top of the footer, and in the right sidebar. In my case it is just a small image in the text widget, so I now put it in the footer, which is almost OK. |
All times are GMT -6. The time now is 01:13 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.