Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member Jeo_james1984's Avatar
    Join Date
    Jun 2007
    Location
    Dallas, TX
    Posts
    14
    Member #
    15379
    OK I have a 3 column layout. The left and right columns have a background image that repeats along the y-axis. My goal is I'm trying to have the left and right column heights have an auto height to whatever the middle / content height is. The columns will adjust to whatever the middle column is, but it will not show my background image scrolling unless I set a specific height to the right and left columns. I want those heights to be dependent on the content column and scroll the background image for however long the page content is. I've tried several things and I just cant get it to work. Any ideas?

    Code:
    #leftcolumn { 
     background-image:url(sides_bg.gif);
     background-position:left;
     background-repeat:repeat-y;
     height: auto;
     width: 15px;
     float: left;
    }
    
    #content { 
     float: left;
     color: #000000;
     background-color:#FFFFFF;
     /*padding: 10px;*/
     width: 953px;
     display: inline;
    }
    
    #rightcolumn { 
     background-image:url(sidesRight_bg.gif);
     background-position:right;
     background-repeat:repeat-y;
     height: auto;
     width: 15px;
     float: left;
     position: relative;
    }

  2.  

  3. #2
    Junior Member Jeo_james1984's Avatar
    Join Date
    Jun 2007
    Location
    Dallas, TX
    Posts
    14
    Member #
    15379
    Not sure what I was thinking. Moving the bg image to the body and repeating it there worked for what I needed. I can see instances where one would need it to work in a 3 column layout (with the outer left and right columns), but in my case it wasnt necessary. I just changed up my approach after sleeping on it and it's all good now. Thanks anyway (even though there were no comments on it lol).

  4. #3
    Member surfbouy's Avatar
    Join Date
    Dec 2010
    Location
    Noosa, Sunshine Coast, Queensland, Australia
    Posts
    46
    Member #
    25747
    Liked
    3 times
    Java script to resize

    I had the same problem but I found a great little javascript that resizes all the columns in your layout so that images in empty cols resize to the longest length.
    I'll post it if you need it..

  5. #4
    Junior Member Jeo_james1984's Avatar
    Join Date
    Jun 2007
    Location
    Dallas, TX
    Posts
    14
    Member #
    15379
    Thanks for the offer but I can do it with JS. I was just trying to avoid it in the event that the user doesnt have JS enabled then the layout would fail. There has got to be some way to do it without JS I would think, but maybe I'm wrong lol.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:24 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com