No replies
verciani
verciani's picture
Offline
newbie
Last seen: 9 years 42 weeks ago
Timezone: GMT-8
Joined: 2010-06-01
Posts: 2
Points: 5

Hello!

I've created a 2 layer css page, with the second layer being scrollable. I was happy with the results until I ran into this problem. I cannot figured it out why there is a huge amount of space after my 2 column div. There is no padding or margins and height is set to 100%.

Any help is appreciated! Thanks! Smile
Here is the page

@charset "UTF-8";
/* CSS Document */
 
 
 
* {
	margin: 0;
	padding: 0;
	border: 0;
}
 
#container {
	width: 980px;
	margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
	text-align: left;
	font: 13pt/18px Calibri, Arial, sans-serif;
	height: 100%;
} 
 
#background {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
}
 
#scrollable {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 2;
}
 
#content {
} 
 
body p {
	margin-bottom: 10px;
}
 
h1 {
	font-size: 1.3em;
	padding-bottom: 10px;
	line-height: 1.1em;
}
 
h2 {
	font-size: 1.1em;
	font-family: "Segoe UI",Candara,"Bitstream Vera Sans","DejaVu Sans","Bitstream Vera Sans","Trebuchet MS",Verdana,"Verdana Ref",sans-serif;
	font-weight: bold;
	padding-top: 10px;
	padding-bottom: 5px;
	line-height: 1.4em;
}
 
body  {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 0.7em;
	/*background: url('http://www.landingnet.co.uk/dev/villa/images/background-image.jpg') no-repeat top center;*/
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color:#333;
	line-height: 1.2em;
	width: 100%;
	height: 100%;
	margin: 0px;
}
 
#header {
	height: 164px;
	padding: 0px 0;
	background: #635f94 url(images/header_img.jpg) no-repeat center;
} 
 
#top {
	height: 50px;
	background: url('http://www.landingnet.co.uk/dev/villa/images/top-background.png') no-repeat;
}
 
#top ul {
	padding: 14px 0 0 28px;
}
 
#top li {
	list-style-type: none;
	display: inline;
	padding: 0 0 0 8px;
}
 
#main {
	width: 500px;
	float: left;
	padding: 25px 30px 0px;
}
 
#main img {
	border: 3px dotted #999;
}
 
#main ul, #main2 ul {
	list-style-position: inside;
	margin-left: 0em;
	padding-left: 0em;	
} 
 
#main2 {
	width: 720px;
	height: 580px;
	float: left;
	padding: 25px 35px 0px 30px;
}
 
#sidebar {
	float: left; 
	width: 200px; 
	height: 580px;
	padding: 25px 0px 0px 30px;
}
 
#sidebar p {
	font-style: oblique;
	line-height: 0.9em;
}
 
#button {
	text-align: center;
	padding: 10px 0 10px 0;
}
 
#footer {
	padding: 10 10px 0 40px;
	font: bold xx-small Verdana, Geneva, sans-serif;
	color: #FFF;
} 
 
#footer p {
	margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 20px 0 10px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
	vertical-align: middle;
}
.image_right {
	padding-right: 20px;
	vertical-align: middle;
	padding-top: 7px;
	padding-left: 30px;
}
 
.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 940px;
	height: 100%;
}
#column1 {
	float: left;
	width: 420px;
}
#column2 {
	float: right;
	width: 420px;
}
 
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
}
 
.fltlft { /* this class can be used to float an element left in your page */
	float: left;
	margin-right: 8px;
}
 
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
	clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0px;
}
 
#logo {
	padding: 25px;
	float: left;
}
 
#footer a {
	color: #FFF;
	text-decoration: none;
	font-weight: bold;
}
#footer a:hover {
	color: #336;
	text-decoration: underline;
	font-weight: bold;
}
h1 {
	text-transform: uppercase;
	font: normal 18px Calibri, Arial, sans-serif;
	color: #000;
}
#frame_middle {
	background: url(images/middle_frame.png) repeat-y;
	margin: 0px auto;
	width: 980px;
	height: 100%;
}
#copy {
	padding: 20px;
}
#container_bottom {
	background: url(images/bottom_frame.png) no-repeat left bottom;
	clear: both;
	height: 41px;
}
#header_info {
	color: #FFF;
	background: center;
	width: 980px;
	margin-right: auto;
	margin-left: auto;
	font: x-small Verdana, Geneva, sans-serif;
}
#header_right {
	float: right;
	width: 980px;
}
#header a {
	color: #FFF;
	text-decoration: none;
	font-weight: normal;
}
#header a:hover {
	color: #C4C8DD;
	text-decoration: underline;
	font-weight: normal;
}