Solved

Sidebar shadow (all the way down)

Posted on 2011-09-26
11
250 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
[X]
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
  • 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
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 
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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

624 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