Jump to content


css height problem...


2 replies to this topic

#1 zetsumei

    Young Padawan

  • Publishing Betazoids
  • Pip
  • 269 posts
  • Gender:Male
  • Location:127.0.0.1

Posted 10 January 2007 - 09:50 PM

I'm trying to get the css content container to be flush with the bottom of the browser at all times even when the content doesnt reach down to the end...how would I do this?

EDIT: what im trying to get is for the content area to expand 100% and stay that ways no matter how little or how much content I have in that area. http://www.vxlabs.com look on the first page it expands all the way down, but the scroll bar is there...how would i make it expand only to the bottom w/o the scrollbar...sorry if im sounding confusing :)...

heres my css code:

body {
	background-color: #213953;
	color: #;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0px;
	 }

#container {
	width: 600px;
	background-color: #213953;
	color: #;
	font-family: verdana;
	font-size: 10px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0px;
		   }

#header {
	width: 600px;
	height: 100px;
	background-color: #005c90;
	color: #;
	font-family: verdana;
	font-size: 10px;
		}

#navbar {
	width: 600px;
	background-color: #213953;
	color: #;
	font-family: verdana;
	font-size: 10px;
	text-align: center;
	padding-top: 3px;
	padding-bottom: 3px;
		}

.content {
	width: 600px;
	background-color: #005c90;
	color: #;
	font-family: verdana;
	font-size: 10px;
	max-width: 600px;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	text-align: center;
		 }

.content2 {
	width: 590px;
	background-color: #005c90;
	color: #;
	text-align: left;
	max-width: 590px;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	padding: 5px;
		  }

.menu {
	width: 600px;
	height: 30px;
	background-color: #213953;
	margin: 0 auto 0 auto;
	  }

.menu a {
	height: 25px;
	padding-top: 7px;
	float: left;
	text-align: center;
	width: 75px;
	color: #;
	text-decoration: none;
		}

.menu a:hover {
	height: 23px;
	background-color: #005c90;
			  }

a.nav:link {
	text-decoration: none;
	color: #;
	font-family: verdana;
	font-size: 10px;
	   }

a.nav:visited {
	text-decoration: none;
	color: #;
	font-family: verdana;
	font-size: 10px;
		  }

a.nav:hover {
	text-decoration: none;
	color: #;
	font-family: verdana;
	font-size: 10px;
	font-weight: bold;
		}

a:link {
	text-decoration: none;
	color: #;
	font-family: verdana;
	font-size: 10px;
	  }

a:visited {
	text-decoration: none;
	color: #;
	font-family: verdana;
	font-size: 10px;
		  }

a:hover {
	text-decoration: none;
	color: #;
	font-family: verdana;
	font-size: 10px;
	font-weight: bold;
		}

Edited by zetsumei, 10 January 2007 - 10:08 PM.


#2 zetsumei

    Young Padawan

  • Publishing Betazoids
  • Pip
  • 269 posts
  • Gender:Male
  • Location:127.0.0.1

Posted 12 January 2007 - 04:42 PM

no know what im talking about?

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 13 January 2007 - 02:01 AM

CSS height problems are quite frequent. Please use the forum search and/or google, i promise you'll find something.

p.s. Simplest solution to removing the scroll bar is to set the height to 99% as opposed to 100 (or maybe remove bottom padding/margins).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users