Link to home
Start Free TrialLog in
Avatar of catonthecouchproductions
catonthecouchproductionsFlag for United States of America

asked on

Sidebar shadow (all the way down)

Hey,

On this page: http://goo.gl/ce4qX - I am using a sidebar shadow for my main content but for some reason it extends though my bottom content in the blue boxes and the logos.

I keep checking tags, but I keep going in circles. Any ideas how I can make that content stay within the parent div?

Ryan
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

It si doing what you told it to.  Try changing your 'z-index' on #sidebar from 9999 to 1 and see what happens.
Avatar of catonthecouchproductions

ASKER

Ok, thanks. I added that and I still see it through the other boxes on the bottom. I know that I said absolute and height 100%, but thought the position relative on its parent container would constrain it. I would like the sidebar shadow to keep inside of: #top_sub_content

Any thoughts?

Thank you.

Ryan
try to change  min-height: 350px; to height: 440px;

#sidebar {
background: url("../images/sidebar_shadow.png") repeat-y scroll 240px top transparent;
height: 100%;
left: 0;
min-height: 350px;
position: absolute;
top: 0;
width: 279px;
z-index: 1;
}

#sidebar {
background: url("../images/sidebar_shadow.png") repeat-y scroll 240px top transparent;
height: 100%;
left: 0;
height: 440px;
position: absolute;
top: 0;
width: 279px;
z-index: 9999;
}
The content will not stay a unique height. I use that template across various pages each have different heights.

Ryan
Try putting <br clear="all" /> right after the closing </div> for #page_content.
Just added that, still seems like its dropping down.

Ryan
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can try it to take it from div page content and set it in sidebar
with javascript
You can try to take the hight from div #page contenet and set ti in div disedebar with javascript
took another look back as you said and tweaked my code a bit as well and seems to be working.