[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Trouble with overlapping DIVs

Asked by adrian_brooks in Cascading Style Sheets (CSS)

Tags: HTML, CSS, Layout

Hey folks,

I have a 2 column layout with header and footer (CSS LAYOUT).

I seem to be having some difficulty with trying to figure out why my footer div is not being pushed down with the addition of content in my right column.

In my html page, I have my footer located outside of the page wrapper. So, I would think that that alone would be enough to permit for the footer to be pushed down when page content in the right column begins to get more populated.

Here's a summarized html structure that I'm using along with some of the CSS I am also using.
I hope I have presented enough for you to properly assist.

Thanks all.

~A~
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
/* CSS SNIPPETS */
* { padding: 0; margin: 0; }
 
body
{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 8pt;
}
 
#main-surround
{
	/*float:left;
	width: 99.9%;*/
	margin-left:0 auto;
	margin-right:0 auto;
	border:#069 1px solid;
}
 
#header
{
	color: #333;
	background: #EEE;
	font-weight:bold;
	margin-left: 0px auto;
	margin-right:0px auto;
	padding: 10px;
	border: 1px solid #ccc;
	height: 105px;
}
 
#navigation
{
	float: left;
	width:100%;
	margin-left:0px auto;
	margin-right:0px auto;
	height: 24px;
	color: #333;
	padding-top: 3px;
	background: #EEE;
	font-weight:normal;
}
 
#pg-wrapper
{
	position:relative;
}
 
#leftcolumn
{
	position:absolute;
	top:0px;
	color: #333;
	border: 1px solid #ccc;
	background: #EEE;
	padding: 10px;
	height: 460px;
	width: 18%;
	display:inline;
}
 
#rightcolumn
{
	/*float:right;
	position: relative;*/
	color: #333;
	background: #FFF;
	border: 1px solid #ccc;
	padding: 10px;
	height: 460px;
	width: 78%;
	margin-left:20%;
}
 
div#footer
{
	position:relative;
	text-align:center;
	margin-left:20%;
	margin-right:20%;
	background: #EEE;
	/*border:#99A 1px solid;*/
	width:800px;
}
 
<!-- PAGE HTML -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META NAME="DESCRIPTION" CONTENT="blah blah blah" />
<META NAME="KEYWORDS" CONTENT="blah, blah, blah" />
<META NAME="RATING" CONTENT="General" />
<META NAME="AUTHOR" CONTENT="Me" />
<META HTTP-EQUIV="Content-Language" content="EN" />
<META NAME="COPYRIGHT" CONTENT="© 2008 Magic Element - G.E.M.S." />
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW" />
<META NAME="REVISIT-AFTER" CONTENT="3 days" />
<title>GEMS</title>
<link rel="icon" href="http://www.sl-gems.com/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://www.sl-gems.com/favicon.ico" type="image/x-icon">
<link type="text/css" rel="stylesheet" href="templates/default/styles/layout.css" />
<link type="text/css" rel="stylesheet" href="templates/default/styles/styles.css" />
<script type="text/javascript" language="javascript" src="scripts/js-functs.js"></script>
<script src="scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body onload="simplePreload('images/gems_logo02.gif','images/login_up.gif','images/login_over.gif','images/logout_up.gif','images/logout_over.gif');">
<div id="main-surround">
 <div id="header">
  <div id="logo">
   <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','640','height','80','title','GEMS Header Ad','src','images/swfs/header_ad1','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/swfs/header_ad1' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="640" height="80" title="GEMS Header Ad">
    <param name="movie" value="images/swfs/header_ad1.swf" />
    <param name="quality" value="high" />
    <embed src="images/swfs/header_ad1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="80"></embed>
    </object></noscript>
    <!--[if IE]>&nbsp;<![endif]-->
    <img src="images/gems_logo02.gif" width="250" height="80" alt="GEMS" />
  </div>
  <div id="navigation"> 
   <table cellpadding="0" cellspacing="0">
    <tr>
     <td class="nav-btn"><a href="{TARGET}" title="Home">Home</a></td>
     <td class="nav-btn"><a href="{TARGET}?op=8&act=new" title="Sign Up">Sign Up</a></td>
     <td class="nav-btn"><a href="{TARGET}?op=2" title="About GEMS">About GEMS</a></td>
     <td class="nav-btn"><a href="{TARGET}?op=3" title="Services">Service</a></td>
     <td class="nav-btn"><a href="{TARGET}?op=6" title="Support">Support</a></td>
    </tr>
   </table>
  </div>
 </div>
 <div id="pg-wrapper">
  <!--[if IE 7]>
   <style>
    #rightcolumn { padding-bottom:20px; }
   </style>
  <![endif]-->
  <div id="rightcolumn">
   {RC_CONTENT}
  </div>
  <!--[if IE 6]>
   <style>
    #leftcolumn { height:477px; }
   </style>
  <![endif]-->
  <div id="leftcolumn">
   {LOGIN_CONTENT}
   {SIDE_NAV_CONTENT}
   {FTRD_CONTENT}
  </div>
  <!--[if IE 7]>
   <style>
    #footer { margin-top:8px; }
   </style>
  <![endif]-->
 </div>
</div>
<div id="footer">
 <table cellpadding="0" cellspacing="0" style="width:800px;">
  <tr>
   <td class="ftr-nav" id="nav1" onmouseover="toggleBG('nav1', true);" onmouseout="toggleBG('nav1', false);"><a href="{TARGET}" title="Home">Home</a></td>
   <td class="ftr-nav" id="nav2" onmouseover="toggleBG('nav2', true);" onmouseout="toggleBG('nav2', false);"><a href="{TARGET}?op=2" title="About GEMS">About GEMS</a></td>
   <td class="ftr-nav" id="nav3" onmouseover="toggleBG('nav3', true);" onmouseout="toggleBG('nav3', false);"><a href="{TARGET}?op=3" title="Services">Services</a></td>
   <td class="ftr-nav" id="nav6" onmouseover="toggleBG('nav6', true);" onmouseout="toggleBG('nav6', false);"><a href="{TARGET}?op=6" title="Support">Support</a></td>
   <td class="ftr-nav" id="nav7" onmouseover="toggleBG('nav7', true);" onmouseout="toggleBG('nav7', false);"><a href="{TARGET}?op=7" title="Terms Of Service">Terms Of Service</a></td>
   <td class="ftr-nav" id="nav8" onmouseover="toggleBG('nav8', true);" onmouseout="toggleBG('nav8', false);"><a href="{TARGET}?op=8&act=new" title="Sign Up">Sign Up</a></td>
  </tr>
 </table>
</div>
<div id="by-line">
 <span style="font-size:7pt;">This site developed &amp; hosted by <a href="http://www.logiqnet.net" target="_blank">Logiqnet Services</a><br />Copyright&copy; 2008 - All Rights Reserved</span>
</div>
</div>
</body>
</html>
[+][-]01/31/09 11:57 AM, ID: 23518255Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: HTML, CSS, Layout
Sign Up Now!
Solution Provided By: yessirnosir
Participating Experts: 1
Solution Grade: A
 
[+][-]01/29/09 02:11 PM, ID: 23503312Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/29/09 03:08 PM, ID: 23503789Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/29/09 03:40 PM, ID: 23503996Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/29/09 04:54 PM, ID: 23504354Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/30/09 02:09 PM, ID: 23513557Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625