www.webdeveloper.com
Results 1 to 5 of 5

Thread: Liquid CSS layout : 100% of height?

  1. #1
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367

    Question Liquid CSS layout : 100% of height?

    Trying to create a CSS layout in which their is two equal columns next to one another.

    They manage to resize horizontally when making it smaller and larger in that direction but...

    How can I get it to fit the page so when there is no content, or not enough content to fill the length of page, both colums still run to the very base of the page ?

    Much like a height of div = 100% of the page effect. I tried setting DIV heights as 100% but didnt hold much hope, and obviously was correct not to I guess. Its filling 100% of the space it needs I guess, rather than 100% of the entire page.

    Example of current page: http://www.gavinpearce.co.uk/dev/new_layout.html
    Last edited by GavinPearce; 01-05-2005 at 05:55 PM.
    Have I really been coming here for 6 years? You would have thought I would have learnt something by now!

  2. #2
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    CSS doesn't do 100% of the page height very well, but you can give the illusion of what you want to do. Give this ALA article a read.

    Incidentally, this won't work if you use XHTML 1.1 and send as application/xhtml+xml.
    Every fight is a food fight when you’re a cannibal.

  3. #3
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    Originally posted by lavalamp
    Incidentally, this won't work if you use XHTML 1.1 and send as application/xhtml+xml.
    For a very good reason which is fine by me.

  4. #4
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    Can you let me in on your very good reason ?

    Also say you wanted it to float, and resize when you make the page smaller, how could you get the background to shrink to the stay inline with the divs as they enlarge or shorten in width, much like when you rezie the A List Apart pages themselves.
    Last edited by GavinPearce; 01-06-2005 at 07:03 AM.
    Have I really been coming here for 6 years? You would have thought I would have learnt something by now!

  5. #5
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    Actually don't worry about that second bit, jsut me being dumb. Cheers by the way for that page!
    Have I really been coming here for 6 years? You would have thought I would have learnt something by now!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles