Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Sidebar shadow (all the way down)

Posted on 2011-09-26
11
247 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 83

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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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 83

Expert Comment

by:Dave Baldwin
ID: 36600540
Try putting <br clear="all" /> right after the closing </div> for #page_content.
0
 
LVL 1

Author Comment

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

Ryan
0
 
LVL 83

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Configuring a checkbox in CSS and php 18 93
Box Locations 6 20
How to position loader with CSS 3 55
CSS issue in Nested Master Pages 9 26
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to count occurrences of each item in an array.

809 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