Why has height of 433px? I make this page http://www.elektroninescigaretes.ym.lt/ and when i instect an element it shows me div has only 433px and i want to make on footer All rights reserved (c) stuff, so i need div to have height of all page not only of the upper part.

//index file
<?php include ("template/header.php"); ?>
<div id = "home_content"></div>
<?php include ("template/footer.php"); ?>

//header file

<!DOCTYPE html>
<link rel = "stylesheet" href = "media/styles/style.css" media = "screen">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>el Cigarai</title>
<body class = "<?php 
$remove = array(".php", "/");
$current_file = str_replace($remove, "", $url);
 $current_page = explode('_', $current_file);
 echo $current_page[0];

<div id = "container">

//footer file


  /style file

position: relative;
margin: 0 auto;
width: 960px;
height: 100%;
position: absolute;
top: 294px;
right: 60px;
width: 960px;
height: 750px;
background-image: url('../images/woman.jpg');
background-repeat: no-repeat;
overflow: hidden;

2 Answers

Pete On Best Solutions

You have a height of 100% set, this means if your content grows larger than the 100% represented by the viewport (or parent container), it will not grow. Try using

user1958555 On

Put this in your style:

html body{height: 100%;}