oPg Gaming Forum
May 25, 2012, 10:34:58 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Make payments with PayPal - it's fast, free and secure!
News: Stay tuned to opggaming.com for new features, modifications, and improvements.
 
   Home   opggaming Help Arcade Search Calendar stats SourceBans Login Register  


hd-gaming
Pages: [1]   Go Down
  Print  
Author Topic: It's been too long.  (Read 366 times)
0 Members and 2 Guests are viewing this topic.
Gidgidonihah
Seriously, what does it mean?
Moderator
Hero Member
*****
Posts: 2163



« on: January 03, 2008, 06:44:36 PM »

I haven't been coding anything in so long, I've forgotten how to get css to work how I want it. Picture this  I want the content div on that page to extend down to the footer.  No matter how much is in it.  No matter how large the page is, I want them to always be connected. 

What simple solution am I overlooking here?
Logged

Jedakiah
Hero Member
*****
Posts: 4632



WWW
« Reply #1 on: January 04, 2008, 01:50:23 PM »

EDIT: On wait I see what you want.  This may not work in all browsers but you can play around with it:

Code:
div#content {
  min-height: 100%;
}

/* If I recall correctly IEs don't obey min-height but they respect height in a similar manner. */

* html body div#content {
  height: 100%;
  overflow: show;
}

The problem with this is that it will add some extra padding to the bottom I think.  Which will make the scrollbar always appear.  To correct for this you'll have to rethink the layout a wee. 
« Last Edit: January 04, 2008, 02:01:07 PM by Jedakiah » Logged

Gidgidonihah
Seriously, what does it mean?
Moderator
Hero Member
*****
Posts: 2163



« Reply #2 on: January 04, 2008, 03:03:36 PM »

See that's the thing.  It doesn't work.  I simply can't get the content div to do anything with the height: x% attribute.  I also can't get it to align to the bottom instead of the top.  I'm failing here.
Logged

Gidgidonihah
Seriously, what does it mean?
Moderator
Hero Member
*****
Posts: 2163



« Reply #3 on: January 04, 2008, 03:50:32 PM »

Scratch that.  I started over.  It works now.
Thanks.
Logged

Jedakiah
Hero Member
*****
Posts: 4632



WWW
« Reply #4 on: January 05, 2008, 11:46:49 AM »

Oh I forgot to mention the html/body height thing.  That's has always seemed redundant to me.  Clearly the body height takes up 100% of the height or else the background image wouldn't repeat all the way.  But it works. 
Logged

Gidgidonihah
Seriously, what does it mean?
Moderator
Hero Member
*****
Posts: 2163



« Reply #5 on: January 05, 2008, 05:59:14 PM »

Yeah, I agree, it is redundant.  But I thought I already had that in there.  Oh well, got it now.  Thanks for the input.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!


Google visited last this page May 21, 2012, 06:03:27 PM