Results 1 to 2 of 2

Thread: Div bleeds if heght is 100% HELP

  1. #1
    Jimaras Guest

    Div bleeds if heght is 100% HELP

    Hello,

    I'm new to this forum and as "WEB Developer".
    Actually I'm trying to be

    My problem is, I'm creating a site that needs to have a column on the left and the heigh is 100% under the logo.

    I'm trying to do this with CSS and I have a bleed at the bottom and I can not make it work.

    I need to be 100% so if I resize the window so the left column takes the 100% of the space under the logo.

    Thanks.

    this is my HTML

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<link href="css/main.css" rel="stylesheet" type="text/css" />
    	<title></title>
    </head>
    <body>
    	<div id="outerDiv">
    		<div id="outerCanvas">
    			<div id="head">
    				<div id="logo">
    					Logo
    				</div> <!-- END Logo -->
    				<div id="outerBanner">
    					words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words words and words and words 
    				</div> <!-- END outerBanner -->
    			</div> <!-- END Head -->
    		</div> <!-- END outerCanvas -->
    	</div> <!-- END outerDiv -->
    </body>
    </html>
    The CSS:

    Code:
    body {
    	padding: 0px;
    	margin: auto;
    	font-family: "Lucida Grande", Verdana, Arial;
    }
    
    #outerDiv {
    	position: absolute;
    	max-height: 100%;
    	max-width: 100%;
    	margin: auto;
    	min-height: 575px;
    	min-width: 1024px;
    	height: 100%;
    	width: 100%;
    	background-color: black;
    }
    
    #outerCanvas {
    	margin-left: auto;
    	margin-bottom: auto;
    	margin-right: auto;
    	margin-top: auto;
    	background-color: white;
    	height: 100%;
    	width: 95%;
    }
    
    #head {
    	height: 100%;
    	background-color: #cccccc;
    	width: 200px;
    }
    
    #logo {
    	background-color: #009966;
    	height: 100px;
    	width: 200px;
    }
    
    #outerBanner {
    	height: 100%;
    	width: 200px;
    	background-color: #9999ff;
    	overflow: scroll;
    }

  2. #2
    Join Date
    Mar 2010
    Location
    England
    Posts
    1,144
    So what your basically saying is, you want a 2+ columned website, and the left column is 100% of the height of the screen. If this is what your after, then check out this tutorial.

    http://www.ejeliot.com/blog/61

    If that is not what your after, can you either show me an example, (maybe a link to a similar looking website). Otherwise, ill have a go at guessing what you mean.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •