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 7 of 7
  1. #1
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    I am making a 2-column site with header and footer - and I am having a brain-fart or something because I really can't remember how to make both the columns extent to the footer without having to specify a height!

    I know there is a way to do it, but I have been doing 3-columns for so long I can't remember. I have used a <div id="clear> but it doesn't seem to work!

    He-e-l-l-l-p!
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  2.  

  3. #2
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    oh. well just copy the code and play with it. thats what it's for. i'm adding some free templates to the tutorials section of my site.

    while($get_it !== true){ continue; }

  4. #3
    Junior Member
    Join Date
    Dec 2010
    Location
    Dewey AZ
    Posts
    3
    Member #
    25524
    floats and clears

    I'm thinking the <div id="clear"> is good. You have to clear: both in the footer though. #footer {float: left; clear:both;} or is it clear: all?

  5. #4
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Yeah, The footer has its own wrapper and so sticks well at the bottom - and the columns expand and contract well according to the content.
    The problem is I want to have a coloured background for the shorter (sidebar) column and the colour only extends to the bottom of the text...
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  6. #5
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    ah. ok. with ths template you would make the color of the content div white. the container div the color you want the sidebar to be. and no color for the sidebar. make sence?

    while($get_it !== true){ continue; }

  7. #6
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    YEP - that will work as long as the content div is longer than the sidebar. But if i ever have a page where the content is not as long as the sidebar...
    I guess I will have to assign a minimum height to the content div that will equal the height of the sidebar content?
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  8. #7
    Senior Member Dorky's Avatar
    Join Date
    Jun 2009
    Location
    Destin Florida
    Posts
    1,430
    Member #
    19103
    Liked
    4 times
    min-height is always a good idea. contact pages are typically short and collapsing the footer that far up the page looks weird. but the layout in that template will adjust to the content. ie... with no content the footer will rest right under the head, or stop at the content in the sidebar. since i used overflow: auto on the container the float won't spill into the footer. if you go to my site i have now 4 templates. feel free to make use of them at any time. will be adding more soon. all barebones.

    while($get_it !== true){ continue; }


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 04:56 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com