Solved

Sidebar shadow (all the way down)

Posted on 2011-09-26
11
244 Views
Last Modified: 2012-05-12
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
0
Comment
  • 4
  • 4
  • 3
11 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 36600427
It si doing what you told it to.  Try changing your 'z-index' on #sidebar from 9999 to 1 and see what happens.
0
 
LVL 1

Author Comment

by:catonthecouchproductions
ID: 36600466
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
0
 
LVL 9

Expert Comment

by:user_n
ID: 36600470
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;
}
0
 
LVL 1

Author Comment

by:catonthecouchproductions
ID: 36600498
The content will not stay a unique height. I use that template across various pages each have different heights.

Ryan
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 36600540
Try putting <br clear="all" /> right after the closing </div> for #page_content.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:catonthecouchproductions
ID: 36600569
Just added that, still seems like its dropping down.

Ryan
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36600830
Look at your http://skimaine.kgconnect.com/ski-areas/ page.  Looks like you have it right on that page.
0
 
LVL 9

Expert Comment

by:user_n
ID: 36601655
You can try it to take it from div page content and set it in sidebar
0
 
LVL 9

Expert Comment

by:user_n
ID: 36601658
with javascript
0
 
LVL 9

Expert Comment

by:user_n
ID: 36707701
You can try to take the hight from div #page contenet and set ti in div disedebar with javascript
0
 
LVL 1

Author Closing Comment

by:catonthecouchproductions
ID: 36718122
took another look back as you said and tweaked my code a bit as well and seems to be working.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now