Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS - Get sidebar to fit to page

    I would like to have my sidebar extend for the full length of the page, but obviously different pages are different heights. I have tried using height=100% tags but those don't help. Here is my current code:

    #Layer1 {

    position:absolute;

    left:4px;

    top:76px;

    padding-top:25px;

    width:172px;

    height:580px;

    z-index:51;

    background-color: #00336F;

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    One problem at a time. Don't get ahead of your self. You'll need to read this
    http://www.alistapart.com/articles/fauxcolumns
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm kind of confused. How does creating a body background image solve the problem with the sidebar?

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,739
    Thanks
    22
    Thanked 1,837 Times in 1,821 Posts
    #Layer1 {

    position:absolute;

    That is looking an awful lot like Dreamweaver code. You will regret having all the absolute positioning that program would like you to use.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,739
    Thanks
    22
    Thanked 1,837 Times in 1,821 Posts
    Quote Originally Posted by fightonusc61 View Post
    I'm kind of confused. How does creating a body background image solve the problem with the sidebar?
    Faux Columns is a very effective technique for creating equal length columns when one has content and another needs to follow it with less content.
    See my example page.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #6
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    #Layer1 {

    position:absolute;

    That is looking an awful lot like Dreamweaver code. You will regret having all the absolute positioning that program would like you to use.
    It is dreamweaver. I didn't code the website, but I am now webmaster. I have gone through and recoded almost every single page on the site. It has been an extreme pain because the coding is horrid. That is why I'm here for help.

  • #7
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,739
    Thanks
    22
    Thanked 1,837 Times in 1,821 Posts
    the coding is horrid
    Code:
      					<td width="512" class="style15">
    
      						<p align="center"><img src="images/det105.jpg" width="560" height="490" border="0" /><br />
    
    			          <span class="style18"><strong>Pictured above:</strong></span></p>
    
    				  <p align="center" class="style18">The Det 105 Right of Line Award Trophy </p>
    
    				</td>

    Yes, it needs a total re-write for sure.
    Have you thought about just starting over?
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #8
    New Coder
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can't just start over, wish I could. So I have to resort to fixing what I find. Technically this is a government web site, since the AFROTC is part of the Air Force, and as webmaster I have to get permission for even moderate changes. Obviously coding is all behind the scenes so I can do that myself, but I had to request to change the sidebar, stuff like that. Real pain in the ***.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •