CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 11th, 2004, 04:56 PM
heyder heyder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: t.o.
Posts: 82 heyder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 55 sec
Reputation Power: 7
css layout issues

Can someone tell me what's going on with my css lsyout.

http://www3.sympatico.ca/timarney/temp/layout.htm

This is the first time I doing layout with CSS-P so I don't know all the in and outs yet.

The first thing I notice is that in ie... scrollbars apear when there is no need for them.

In Opera the left nav streches well past the area for the main content. Any tips on how to fix/improve this sort of layout would be much apreciated.

Here's the code...

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>--</title>
<style type="text/css">
body, html{
	height:100%;
	margin:0px;
	padding:0px;
	text-align:center;
	background:#E0E0E0;
}

#container,#header{
	width:760px;
	margin-left:auto;
	margin-right:auto;
	text-align:left;
}
	
#container{
	height:100%;
	min-height:100%;
	background: #FFFFFF;
}

#header{
	height:155px;
	background:#A9A99F;
}

#leftnav{
	height:100%;
	background: #F5F5F5;
	width:150px;
	float: left;
}

#main{
	text-align: left;
	vertical-align: top;

}
</style>
</head>
<body>
<div id="container">
<div id="header">header</div>
<div id="leftnav">left hand nav</div><div id="main">main</div>
</div>
</body>
</html>

Reply With Quote
  #2  
Old January 11th, 2004, 08:24 PM
heyder heyder is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: t.o.
Posts: 82 heyder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 55 sec
Reputation Power: 7
Okay, I've seem to have got it worked out for the most part...

http://www3.sympatico.ca/timarney/temp/layout01.htm

if I remove the header the scrolling will go away..How can I take the height of the header into account when dealing with percentages?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css layout issues


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway