Solved

Full length sidebar based on length of page with CSS.

Posted on 2003-11-04
4
554 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

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
A simple Float not working. 5 25
CSS issue 8 39
Sort Order Icons on HTML Table 3 33
CSS: How do I override in-line styling 11 24
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.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to dynamically set the form action using jQuery.

789 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