Liquid Layout Template Needed

Discussion in 'Off-Topic Lounge' started by TouchChatterbox, Jul 8, 2009.

  1. TouchChatterbox

    TouchChatterbox Well-Known Member

    May 21, 2009
    593
    0
    0
    #1 TouchChatterbox, Jul 8, 2009
    Last edited: Jul 8, 2009
    Hi everyone... I'm trying to get my head around liquid layouts and want to achieve a look similar to http://www.pfdfoods.com.au/ in terms of the content DIV being in the middle along with a menu.

    I also have to get the DIV containing the menu to be of equal height to the one displaying the content...

    Does anyone know a link to such a template? I've been Googling for ages. Or perhaps someone could please throw something together quickly in Dreamweaver??

    I want to have a gradient-style background behind that central <DIV> so everything is centred and attractive. So I need to know how to do that too ... a wrapper, yeah?

    This is what I'm looking for: http://img269.imageshack.us/img269/5332/layoutauv.jpg. And the footer should continue the background across...

    Thanks in advance. This is annoying me so much :(
     
  2. Prab

    Prab Moderator
    Staff Member Patreon Silver Patreon Gold Patreon Bronze

    Dec 17, 2008
    3,549
    7
    0
    CS student
    SG
    HTML:
    <html>
    <head>
      <style>
        body {
          background: url(ah.png) #004684 50% top repeat-x;
        }
        #main {
          position: absolute;
          left: 50%;
          margin-left: -400px;
          width: 800px;
        }
        #menu {
          width: 200px;
          float: left;
          background-color: white;
        }
        #content {
          width: 600px;
          float: right;
          background-color: orange;
        }
        #footer {
          background-color: gray;
        }
      </style>
    </head>
    <body>
    <div id="main">
      <div>
        <div id="menu">Menu</div>
        <div id="content">Content</div>
      </div>
      <div id="footer">Footer</div>
    </div>
    
    </body>
    </html>
    
    ah.png is this image:

    ah.png

    The final result should look like this:

    Picture 1.png

    Note: Its been about 2 years since I did web development so you may need to check if the CSS attribs are actually compliant and if it works across browsers.
     
  3. Zandog

    Zandog Well-Known Member

    Jan 1, 2009
    278
    11
    0
    Public Relations/Graphic Designer - Spiffcode Inc.
    Seattle, Wa
    Bravo Prab
     
  4. Prab

    Prab Moderator
    Staff Member Patreon Silver Patreon Gold Patreon Bronze

    Dec 17, 2008
    3,549
    7
    0
    CS student
    SG
    lol... Thanks. But I only tested the above on FF 3.5. Not so bravo-ish. Anyone else can comment if its correct, that'll be helpful for the OP :)
     
  5. TouchChatterbox

    TouchChatterbox Well-Known Member

    May 21, 2009
    593
    0
    0
    Wow, thanks. I'll try that out tomorrow as I'm just about to head to bed [and thought I'd check in here first] but looks perfect. Cheers! :)
     
  6. TouchChatterbox

    TouchChatterbox Well-Known Member

    May 21, 2009
    593
    0
    0
    I don't understand how to use that.
     

Share This Page