1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Height problem

Discussion in 'CSS' started by killaklown, Nov 2, 2007.

  1. #1
    Whatever I did wrong, it was probably stupid (coding for too long makes you do stupid things :p)

    Anyways, I want the height to be the whole page, and then expand if its longer. (i know that 100% would have the height be the whole page, and auto would have it expand.. well suppose to)

    The height is not expanding to the content, and the 'Designed By.....' should be at the bottom of the content, instead of on the right side.

    http://creativeklown.com/test/
     
    killaklown, Nov 2, 2007 IP
  2. Warenth

    Warenth Peon

    Messages:
    3
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm no CSS Wizard but you might try:

    Setting the height of your HTML Tag, Center Tag, and Div id='c' tag to 100%.

    Height 100% will only fill to 100% of its container's height. The HTML container has the minimum height necessary to display the page so you need to make it "taller".

    As for your "Designed By". I think you can resolve your issue by adding float: left; to your div id footer.

    Good luck and I hope this helps,
    Warenth
     
    Warenth, Nov 2, 2007 IP
    killaklown likes this.
  3. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #3
    setting height to 100% means the height will be the height of the page, and if the content goes longer, the height will not expand.

    Edit: btw, putting the float on the footer div worked, +rep.


    Also: The height problem is only for Firefox, it works fine in IE.
     
    killaklown, Nov 2, 2007 IP
  4. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #4
    Fixed it, just added

    display:table;
     
    killaklown, Nov 2, 2007 IP
  5. deronsizemore

    deronsizemore Peon

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0