www.webdeveloper.com
Results 1 to 6 of 6

Thread: Liquid CSS Question?

  1. #1
    Join Date
    Dec 2007
    Posts
    55

    Liquid CSS Question?

    Is there a way to get my liquid CSS to have a fixed width but keep my height liquid depending on my content?
    <LIFE><!----Insert boring stuff here----></LIFE>

    A Life? Cool! Where can I download one of those from?

    Yo' momma's .sig is so big, she's got to use a full screen editor just to edit it!

  2. #2
    Join Date
    Dec 2005
    Location
    American, living in Toronto, ON. CANADA
    Posts
    6,746
    Quote Originally Posted by centrationinc
    Is there a way to get my liquid CSS to have a fixed width but keep my height liquid depending on my content?
    Generally, style="height:auto" on the main or wrapper, with padding on that container. This isn't really 'liquid' though, as the width is the deciding factor of 'ice', 'jello' or 'liquid' layout, or did I miss the point?
    I build for: Firefox and tweak for IE

  3. #3
    Join Date
    Dec 2007
    Posts
    55
    whoops sorry i apologize I had that backward. What I want is my height to be different depending on the content? I have my width set at 670px. But I want my height to fluctuate depending on the content that will be dynamically output.
    <LIFE><!----Insert boring stuff here----></LIFE>

    A Life? Cool! Where can I download one of those from?

    Yo' momma's .sig is so big, she's got to use a full screen editor just to edit it!

  4. #4
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    That should be the normal way it works.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  5. #5
    Join Date
    Dec 2007
    Posts
    55
    Ok so my question is do i set my body CSS to say

    height:auto;
    width:670px;

    ???
    <LIFE><!----Insert boring stuff here----></LIFE>

    A Life? Cool! Where can I download one of those from?

    Yo' momma's .sig is so big, she's got to use a full screen editor just to edit it!

  6. #6
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    225
    I think the height will expand by itself even if you don't write anything.

    width: 670px;


    This ofcourse is assuming you are using it on a <div> or similar box element.

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