TwelvestoneFront End

Layout with css


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
jestros
 
2009-10-14

I'm trying to go from tables to css, and it's getting a little RAAWR! So, I'm starting with a basic layout. Issue #1 Header Content Footer. Header and Footer fixed heights, trying to get Content to expand to fill the rest. This is as far as I've gotten, and it doesn't work. Content somehow needs to be %100 - header size - footer size. It seems like it would be an easy built in function, but what I can find from searching is it's not. div.header{ width:810px; display:block; height:85px; background-color:#b8c5d5; clear:left; margin: 0px auto; padding:0px;

}

div.content{ width:810px; min-height:100%; height:100%; background-color:white; clear:left; margin: 0px auto; padding:0px; }

div.footer{ width:100%; height:25px; background-color:#b8c5d5; clear:left; position:absolute; bottom:0; }

body{ height: 100%; background:#f1f4f7; margin:0px; padding:0px; } html{ height: 100%; }

and in the body

Issue #2 is smaller, and I can work around it, it seems to have the footer glued to the bottom, you need to go absolute, and then it it sticks to the left. I made footer 100% and I plan on nesting something else in there to size, but it seems like a bad work around.

JERKSTORE
 
2009-10-14

Like this?

jestros
 
2009-10-14

Originally posted by: JERKSTORE Like this?

You cocky bastard I love you! Beer and BJ's on me. I knew it would be something easy. overflow:hidden; Blammo!

JERKSTORE
 
2009-10-15

No prob k

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFront End

Layout with css