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 September 19th, 2003, 12:49 PM
boxman boxman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 boxman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CSS: IE6 positioning problem

I'm trying to create a simple two column + header layout. The left column contains navigation and has a fixed width. The right column contains content and fills the remaining width of the page. The header also contains navigation, in text form. Due to the textual navigation within the header, the left and right column cannot be positioned absolutely (as in the bluerobot layout resevoir) as the user may alter the text size, causing the header to encroach on the left & right columns; I have therefore wrapped them in a relatively positioned parent/containing div (#wrapper) so they can be positioned according to this containing block's boundaries. This works fine on all browsers - apart from IE6, which seems to have problems with the containing block. Here's a stripped down version of the code I'm using:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<title>Untitled</title>
	
	<style type="text/css" media="Screen">
	body {
	  margin:0;
	  padding:0;
	  }
	
	#header {background-color:#eee;}
	
	#wrapper {
	  position:relative;
	  clear:both;
	  }

	#left {
	  position: absolute;
	  top: 0; left: 0;
	  width:270px;
	  background-color:#ccc;
	  }
		
	#right {
		margin-left: 270px;
		background-color:#666;
	  }
	
	p, ul {margin: 0;}
	</style>
</head>
<body>
	
	<div id="header">HEADER</div>
	
	<div id="wrapper">
	
		<div id="left">
			<ul>
				<li>option 1</li>
				<li>option 1</li>
				<li>option 1</li>
				<li>option 1</li>
			</ul>
		</div>
		
		<div id="right">
			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Proin fermentum euismod mauris. Sed vel metus vel wisi tincidunt convallis. Cras rutrum tortor non nulla. Duis nunc dui, iaculis vel, vehicula ac, fermentum vitae, metus. Fusce urna lacus, commodo a, viverra accumsan, varius mollis, quam. Aliquam at tortor. Donec at lacus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed commodo. Duis imperdiet nonummy nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos.  </p>
		</div>
	
	</div>

</body>
</html>


I'm sure this is something simple....but I can't see it...can anyone help?
Attached Files
File Type: html test.html (1.5 KB, 435 views)

Reply With Quote
  #2  
Old September 19th, 2003, 01:00 PM
escaperanger escaperanger is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 22 escaperanger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This may not answer your question directly, but...

I use ems to set the top of the divs that flow under the header. If the size of the text in the header changes, the two divs under it also move.

Code:
#col1
{
   position:absolute;
   top:5ems;
   left:0;
}
#col2
{
   position:absolute;
   top:5ems;
   left:30%;
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS: IE6 positioning problem


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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT