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 June 28th, 2004, 04:15 PM
dkode dkode is offline
PHP/PERL/.NET Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Daytona Beach, Florida
Posts: 36 dkode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 8
Send a message via AIM to dkode
3 column madness

I am having a problem with the 3 columns in the code below. the left and center columns div's are next to each other where they are supposed to be, but the center content always sits below the left columns content. You can see from the colored borders I put in to try to figure out the problem. Any ideas? thank you

Code:
<HTML>
	<HEAD>
		<title>
			Example
		</title>
		<style>
		#addNewModule {
	padding-top: 10px;
	padding-left: 5px;
	padding-bottom: 10px;
}

#addNewModule a 
{
	border: 1px solid #000;
	background-color: #1C4F9B;
	padding: 5px;
}

#bodyWrapper {
	border: 1px solid #FFF;
	background-color: #559CEC;
	width: 100%;
}

#header {
	background: #EEE;
}

#header h1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #000;
	padding-left: 15px;
	padding-top: 20px;
	width: 100%;
}

#header #headerLeftColumn {
	float: left;
	width: 700px;
}

#header #loginControl {
	float: right;
	width: 200px;
}

/* begin content selectors */

#container {
	float: left;
	width: 100%;
	margin-right: -200px;
	border: 1px solid red;
}

#content 
{
	border: 1px solid yellow;
	margin-right: 200px;
}

#left 
{
	float: left;
	width: 150px;
	border: 1px solid #FFF;
}

#middle {
	margin-left: 200px;
	/*padding-top: 0px;*/
	/*padding-left: 5px;*/
	border: 1px solid orange;
}

#sidebar {
	float: right;
	width: 150px;
	border: 1px solid #000;
}

#footer {
	background: #999;
	border: 1px solid #cecea5;
	clear: both;
}

/* custom selectors */

#module {
	position:relative;
	width: 100%;
	padding: 2px;
	background: #FFF;
	border: 1px solid #000000;
	font-size: 10px;
	/*margin-bottom: -10px;*/
}

#title {
	background-color: #C2DBF5;
	padding: 3px;
	border: 1px solid #144678;
	text-align: left;
	color: Black;
	font-weight: bold;
	font-size: 14px;
}

#moduleItem {
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
}

#moduleItem h1 {
	font-weight: bold;
	font-size: 12px;
	margin-bottom: 0px;
}

#moduleItem p {
	margin-top: 0px;
	margin-bottom: 10px;
}

#module #footer {
	background-color: #C2DBF5;
	border: 1px solid #144678;
	padding: 4px;
	text-align: left;
	color: black;
	font-weight: normal;
	font-size: 10px;
}

.clearing {
	height: 0;
	clear: both;
}

.last {
	margin-bottom: 0;
}




/* type selectors */

body {
	color: #000000;
	background-color: #E8E8E8;
	font-family: Verdana, sans-serif;
	font-size: smaller;
	margin: 10px 10px 0px 10px;
	/*text-align: center;*/
}
		</style>
		</HEAD>
	<BODY>
			<div id="bodyWrapper">
					<DIV id="container">
						<DIV id="content">
							<DIV id="left">
<div id="module">	
			<div id="moduleItem"> Left	Column	  </div>
</div></DIV>
							<DIV id="middle">
<div id="module">
			<div id="moduleItem"> Text	Here	  </div>
</div></DIV>
						</DIV>						
					</DIV>					
					<DIV id="sidebar">Right Column </DIV>
					<div class="clearing">&nbsp;</div>
				
			</div> <!--bodyWrapper-->			
	</BODY>
</HTML>
__________________
"Mankind cannot define memory, yet it defines mankind"

Reply With Quote
  #2  
Old June 28th, 2004, 04:47 PM
olaf's Avatar
olaf olaf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Netherlands
Posts: 310 olaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 m 13 sec
Reputation Power: 5
in which browser do you have checked this?
__________________
Greetz...
Olaf

Web Development Blog|...some free php classes...

Reply With Quote
  #3  
Old June 28th, 2004, 05:10 PM
dkode dkode is offline
PHP/PERL/.NET Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Daytona Beach, Florida
Posts: 36 dkode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 8
Send a message via AIM to dkode
I am having the problem in IE6.

Reply With Quote
  #4  
Old June 28th, 2004, 05:18 PM
olaf's Avatar
olaf olaf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Netherlands
Posts: 310 olaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 m 13 sec
Reputation Power: 5
that's strange i can't see the problem in IE 6.0 i will check this tommorow on another machine.

Reply With Quote
  #5  
Old June 29th, 2004, 08:07 AM
dkode dkode is offline
PHP/PERL/.NET Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Daytona Beach, Florida
Posts: 36 dkode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 sec
Reputation Power: 8
Send a message via AIM to dkode
ok,

i've figured out the problem. In the copy of the page I put on here, I removed this line:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


Without that line in there it displays correctly. But if I put it in, it messes it up like I was describing

Reply With Quote
  #6  
Old June 29th, 2004, 10:15 AM
olaf's Avatar
olaf olaf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Netherlands
Posts: 310 olaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 16 m 13 sec
Reputation Power: 5
it's up to you ... to remove this important information.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > 3 column madness


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
Stay green...Green IT