Results 1 to 2 of 2

Thread: percentaged content

  1. #1
    Join Date
    Apr 2012
    Posts
    63
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default percentaged content

    I was wondering, havent quite figured it out yet.
    I love fluid websites, but i kinda hate it when everything is fluid, therefore im leaving the header fixed in height and adjustable in width. Now this works fine.
    But the thingie im having now is how do i determine the height of the content part.

    I have a header div (div 1 to speak), which isnt fluid in its height, and a footer, which will stay right at the bottom all the time (div 3 to speak), by that the space inbetween will automatically be filled with div 2 i thought??
    The problem is, is that div 2 contains 2 divs horizontally placed next to eachother that need to have a variable height, compared to the height of div 2, so for example when div 2 = 600px, i want the 2 inner divs to fill 60% of that part. Is it possible to not give a height to div 2 and still have it fill 100% of the page, and then have the 2 inner divs be fluid again?
    Last edited by kimikai; 06-03-2012 at 12:51 PM.

  2. #2
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    you need to set the two divs inside div 2 to have their heights set to be 60% of div 2. If that's not what your asking, please post the code.

Bookmarks

Posting Permissions

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