Why container body won't expand fully

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PHPstarter
    New Member
    • Jun 2009
    • 77

    #1

    Why container body won't expand fully

    Hiya guys.

    The problem Im having is basically that I have a backgound image set with position: absolute and z-index: -1.

    Then there's a table in which the main content is inside.

    The error is that the table wont auto expand so that any content fits inside.

    It expands to say 500px, then stops no matter how much is inside.

    There are divs inside of the table with position absolute and relative, but is this keeping the table from expanding?

    The table width has been set to both 100% and *, without any luck.

    Setting a height: 700px; does work, but it isn't dynamic as each page has different content.

    I hope this made sense and someone can tell me what's wrong.

    The page is a 'pretend' community based off a school project and is at a temporarily site
    here: http://afl-clan.com/haven
    By clicking Account -> Create new, you will see some text overflowing
    That text is inside the table and doesn't have any Position properties set.

    The white frame which surrounds most of the site is the #container (which should surround the whole site really).
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    I don't have time to play with it right now, but try removing the height property from your account-create division. I'll play with it with it a bit when I get time.


    Thanks, Death

    Comment

    • PHPstarter
      New Member
      • Jun 2009
      • 77

      #3
      It really does the trick!

      Thank you.

      However, how can I keep that object forced to a height without making the body incapable of expanding?

      Edit:

      I solved it now :)
      I did some CSS tweaking and had to resort to the use of a table in order to seperate the logo on the left and the content to the right, I hope that isn't bad coding conduct.

      Comment

      • Death Slaught
        Top Contributor
        • Aug 2007
        • 1137

        #4
        I'm glad it worked. Yes, that is bad coding. You should never use tables for layout. I'm at school right now, but I should be able to play with this more during my second period.

        Thanks, Death

        Comment

        • Death Slaught
          Top Contributor
          • Aug 2007
          • 1137

          #5
          You removed the example, I don't have IE, and you should never use tables for layout. That's all I can do right now.


          Thanks, Death

          Comment

          Working...