Solved

Full length sidebar based on length of page with CSS.

Posted on 2003-11-04
4
553 Views
Last Modified: 2013-11-19
Hey all,

I have a page that is laid out using Cascading style sheets. The link to the parent page is http://pps.ddogdesigns.com/default_new.asp.

The problem is actually on the detail page of the news articles located on the left side of the above page so click on one of the news articles to get to the detail page, any of the articles should work. Or here is a direct link http://pps.ddogdesigns.com/aboutus/news/news.asp?newsid=1

The problem is in the left sidebar that says "Hello World"....I need that black background to go the full length of the page rather than stopping part way down.

Here is the Style that is controlling everything in that sidebar;

.sidebar {
      position: absolute;
      background-image: url("/images/redesign/subpagessidebar.gif");
      background-repeat: repeat-y;
      align: left;
      margin: 0;
      padding: 0;
      z-index: 0;
      top: 126px;
      height: 100%;
      left: 5px;
      width: 140px;      
      text-indent: 15px;
      color: white;
      }

Please help and thanks,
Knotty Dred
0
Comment
Question by:knottydrd
  • 4
4 Comments
 
LVL 4

Expert Comment

by:Fendrin
ID: 9681161
ok, I have figured out that the broblem is *somehow* realted to tnephotoarticleimg2.jpg... without this image, it looks just fine. I will continue looking into this...
0
 
LVL 4

Expert Comment

by:Fendrin
ID: 9681205
ok, i was wrong.. it's not the picture explicitly... it's the height of the main area... I have an idea.. let me try it and get back to you...
0
 
LVL 4

Accepted Solution

by:
Fendrin earned 250 total points
ID: 9681266
I have cornered the problem, i just need to figure out how to eliminate it. The problem is that you have everything positioned absolutely... now, when an object is positioned absolutely, all of it's positional and dimensional attributes are raltive to the viewport.... so height:100% stops at the bottom edge of the screen instead of continuing all the way down the page.
0
 
LVL 4

Expert Comment

by:Fendrin
ID: 9725715
gald to have helped.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Menu Selected on Chrome for Windows 13 18
compact pure CSS Read More Toggle 4 67
Input box width 6 26
Changing Two Areas of a Page 5 17
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 look for a specific file type in a local or remote server directory using PHP.

777 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