Question

Problem with consistent column height for a liquid CSS design and a sticky footer

Asked by: PhillipsPlastics

Just today I got the sticky footer working within all browsers (IE6, IE7, IE8, FF, and Chrome) but I cannot seem to get the columns to fill to the bottom of the page unless there is actual content to push it that far.  I have tried min-height:100% as well as height:100% within the col divs in most of the configurations possible to no effect.  I just have no clue where to go from here.  Any help would be greatly appreciated!
The file are attached in a zip file and renamed to .txt files with the original extensions before that.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-01 at 09:28:38ID24777575
Tags

CSS

,

HTML

,

PHP

Topics

Cascading Style Sheets (CSS)

,

Hypertext Markup Language (HTML)

,

Dynamic HTML (DHTML)

Participating Experts
3
Points
500
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. 3 column liquid layout IE6 footer issue
    I have been working on this column matching script that shows the footer at the bottom of equalized columns after the page loads. The footer position is fine for FF & IE7 but IE6 drops the footer much further down the page. How can I get IE6 to behave correctly? Demo is ...
  2. sticky footer, and CSS for IE6,IE7,FF
    Hello, I need a sticky footer for my site, and for my CSS to be compatible in FF, IE6, and IE7. www.nlpboise.com Please include replacement code and explain what you did. Thanks!
  3. IE6 CSS Problem in Joomla Footer
    Hi everyone, I'm having a css problem in the footer of http://www.ideia-atlantico.pt in IE6. The problem is that I want my footer to be always at the bottom of the page like seen in FF, IE7 or even Chrome. But I can't seem to make this work on IE6. I'm using Joomla and the...
  4. footer not displaying in FF
    Hi, Can someone have a look at what I have done wrong. My footer was displaying correctly, I think I may have deleted something in error within my CSS...!!! http://www.trytest.net/sound/website/index.html http://www.trytest.net/sound/website/doors.html I think I need to m...
  5. Gettnig a Sticky Footer to work for IE6
    I realize this is a repeatedly asked question but I just cannot seem to figure it out on my own. The problem I am having is getting a sticky footer attached to my pages using just the CSS. I don't really care at this point if it uses CSS purely or JS to make it work for IE6...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: locke_aPosted on 2009-10-01 at 09:45:29ID: 25470560

Have you considered a modified faux columns technique (with a background applied to the body which will be 100% height)?

http://www.communitymx.com/content/article.cfm?cid=afc58

 

by: PhillipsPlasticsPosted on 2009-10-01 at 10:07:35ID: 25470815

No I hadn't considered that since it's less of an aesthetics thing and far more of a problem with my menu being cut off even after applying overflow:visible.

 

by: locke_aPosted on 2009-10-01 at 11:02:16ID: 25471386

Can you post an image of what you'd like this to be doing and one of what it is actually doing?

 

by: s8webPosted on 2009-10-01 at 12:20:20ID: 25472234

Your markup had a couple extra closing div tags and a malformed list. You need to get your code proper before you troubleshoot or you'll be working on a house of cards.

You're calling includes in these pages, and without seeing the content of the includes, we're only getting a partial view of things. Would it be possible to post a link to the live page?

 

by: PhillipsPlasticsPosted on 2009-10-01 at 12:39:50ID: 25472424

I have 2 screenshots attached to better illustrate... As you can see in the IE7 example the left menu gets cut-off by the div while this is not an issue from within FF or Chrome and using Java (which I have enabled for IE6) does not solve this problem.  Also from the 2 screenshots you can see that the footer is correct in that no matter the level of content (or lack thereof) the footer is sticky.  What I would want to do is extend those columns to the bottom of the page no matter the level of content which would allow the left side menu to be fully seen.
@s8web: unfortunately due to this site being the company's internal site I have no way of posting it externally.

 

by: s8webPosted on 2009-10-01 at 13:29:03ID: 25472897

Without seeing all of your code, all I can do is show you some code that works that accomplishes what you're going for. Copy / Paste it and run it locally as a .htm file.

I would have attached the file, but the ee uploader isn't allowing me to. Here is a link instead http://www.s8web.com/ee/assets/cont_bgd.png

The background is a 1px high repeating image that gives the illusion of columns. The background is applied to the container div.

<!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=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
*{margin:0;padding:0;}
html,
body {
   height:100%;
   text-align:center;
   background:#ebebeb;
}
#container {
   width:1000px;	
   min-height:100%;
   margin:0 auto;
   position:relative;
   background:url(http://s8web.com/ee/assets/cont_bgd.png);
}
#header {
   background:#000;
   padding:10px;
   color:#fff;
}
#body {
   padding:10px;
   padding-bottom:60px;   /* Height of the footer */
}
.column1{
	width:200px;
	float:left;
	padding:5px;
	}
.content{
	width:500px;
	float:left;
	text-align:left;
	margin:0 0 0 30px;
	}
.column2{
	width:200px;
	float:right;
	padding:5px;
	clear:none;
	}
#footer {
   position:absolute;
   bottom:0;
   width:100%;
   height:60px;   /* Height of the footer */
   background:#000;
   color:#fff;
}
</style>
</head>
<body>
<div id="container">
   <div id="header">this is a header</div>
   <div id="body">
   		<div class="column1">Column 1</div>
   		<div class="content">
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy 		text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
        </div>
   		<div class="column2">Column 2</div>
   </div>
   <div id="footer">this is a footer</div>
</div>
</body>
</html>
                                              
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:

Select allOpen in new window

 

by: s8webPosted on 2009-10-01 at 13:31:13ID: 25472915

Some of this code came from an article about "sticky" footers here...
http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page

 

by: s8webPosted on 2009-10-01 at 13:36:29ID: 25472976

Oops, add left:0; to the footer css attributes or the footer will be misaligned in ie7.

Also, add:

*html #container{height:100%}

to the css to fix the page in ie6

 

by: s8webPosted on 2009-10-01 at 13:39:29ID: 25473005

Or just use this one :)

<!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=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
*{margin:0;padding:0;}
html,
body {
	height:100%;
	text-align:center;
	background:#ebebeb;
}
#container {
	width:1000px;        
	min-height:100%;
	margin:0 auto;
	position:relative;
	background:url(http://s8web.com/ee/assets/cont_bgd.png);
}
*html #container{
	height:100%
	}
#header {
	background:#000;
	padding:10px;
	color:#fff;
}
#body {
	padding:10px;
	padding-bottom:60px;   /* Height of the footer */
}
.column1{
	width:200px;
	float:left;
	padding:5px;
        }
.content{
	width:500px;
	float:left;
	text-align:left;
	margin:0 0 0 30px;
        }
.column2{
	width:200px;
	float:right;
	padding:5px;
	clear:none;
        }
#footer {
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	height:60px;   /* Height of the footer */
	background:#000;
	color:#fff;
}
</style>
</head>
<body>
<div id="container">
   <div id="header">this is a header</div>
   <div id="body">
                <div class="column1">Column 1</div>
                <div class="content">
        <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy                text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
        </div>
                <div class="column2">Column 2</div>
   </div>
   <div id="footer">this is a footer</div>
</div>
</body>
</html>

                                              
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:

Select allOpen in new window

 

by: PhillipsPlasticsPosted on 2009-10-01 at 14:00:11ID: 25473185

Below is my code with all of the php functions brought into the html except for the js which draws the left menu.  I also attached it with my css again.

<!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>
<link rel="stylesheet" href="./layouttest.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Finance Home</title>
</head>
 
<body>
<img src="/itweb/ppc_black_white.jpg" width="192" height="62" align="left" />
<div id="PageTitle"><?php echo @$pageTitles[basename($_SERVER['PHP_SELF'])] ?></div>
<div id="header">
</div>
    		<!-- Blue Menu -->
		<ul id="menu" class="blue">
			<li><a href="/index.html">Home</a></li>
			<li><a href="https://phillipsplastics.webex.com">Webex</a></li>
			<li><a href="http://198.178.68.55/itweb/iprint_links.htm">Printer Setup (iPrint)</a></li>
			<li><a href="/itweb/ftp_access.htm">FTP Access</a></li>
			<li><a href="http://ktaweb/wfc/logon">Kronos</a></li>
   			<li><a href="http://www.phillipsplastics.com">PhillipsPlastics.com</a></li>
 
</ul>
 
<div class="colmask threecol">
	<div class="colmid">
		<div class="colleft">
			<div class="col1">
				<!-- Column 1 start -->
				<h2>Finance News</h2>
				<!-- Column 1 end -->
			</div>
				<!-- Column 2 start Links Left Column-->
<?php
include("leftnavigationdefault.php");
?>
<div class="col2">
<ul id="qm0" class="qmmc">
        	
        <li><a class="qmparent" href="javascript:void(0)">Quick Links</a>
 
		<ul>
			<li><a href="../peopleservices/0082_ps_2009.pdf">Benefits Program</a></li>
            <li><a href="../community/community.htm">Community</a></li>
            <li><a href="http://www.phillipsplastics.com/presentations/">Corporate Presentations</a></li>
            <li><a href="supplier_discounts.htm">Employee Discounts</a></li>
            <li><a href="forms/index.htm">Forms</a></li>
            <li><a href="http://heatweb/heatselfservice">Help Desk Self Service</a></li>
            <li><a href="http://infoview:8080/businessobjects/enterprise115/desktoplaunch/InfoView/logon/logon.do">InfoView</a></li>
            <li><a href="http://phillipsplastics.typepad.com/intranews">Intranews</a></li>
            <li><a href="itweb/iqms/iqms_implement.htm">IQMS Implementation</a></li>
            <li><a href="datasheets/mds.htm">Material Data Sheets- IDES</a></li>
            <li><a href="http://products.asminternational.org/meddev/index.aspx">Materials for Medical Devices</a></li>
            <li><a href="http://www.damarco.com/default.asp?cmd=login&amp;Username=PPemployees&amp;Password=0712PPemp">MSDS - Corporate</a></li>
            <li><a href="reporting/index.htm">PPC Reporting</a></li>
            <li><a href="http://www.phillipsplastics.com">PhillipsPlastics.com</a></li>
            <li><a href="itweb/phones.htm">Phones</a></li>
            <li><a href="policyprocessprogram/index.htm">Policy / Process /	Programs</a></li>
            <li><a href="../itweb/iprint_links.htm">Printer Setup through iPrint</a></li>
            <li><a href="scholarships.htm">Scholarships</a></li>
            <li><a href="http://10.68.102.165/maintenance/home.cfm">Service Parts</a></li>
            <li><a href="stationery/home.htm">Stationery</a></li>
            <li><a href="accounting/supply_agreements.htm">Supply Agreements</a></li>
            <li><a href="testing_equip/Equipment_List_061307.htm">Test Equipment List</a></li>
            <li><a href="forms/travel.htm">Travel Policy &amp; Forms</a></li>
            <li><a href="http://phillipsplastics.webex.com">Webex</a></li>
            <li><a href="webex_audio.htm">Webex Audio</a></li>
            <li><a href="wellness/index_wellness.htm">Wellness</a></li>
		</ul></li>
 
        <li><a class="qmparent" href="javascript:void(0)">Finance Products</a>
 
		<ul>
			<li><a href="../itweb/crystal_report_writer.htm">Crystal Report Writer</a>
		</ul></li>
        
        <li><a class="qmparent" href="javascript:void(0)">Finance Services</a>
		<ul>
			<li><a href="bank_wire.pdf">Bank and Wire Instructions</a></li>
   			<li><a href="../itweb/duns.htm">DUNS Numbers</a></li>
			<li><a href="requestdispositiontoolingprocess.xls">Request To Begin Tooling Disposition Process</a></li>
			<li><a href="Credit_refs.pdf">PPC Credit References</a></li>
			<li><a href="ppc_w9.pdf">>W9 for PPC</a></li>
		</ul></li>
 
        <li><a class="qmparent" href="javascript:void(0)">Capital Purchase Process</a>
		<ul>
			<li><a href="capexp.doc">Capital Expenditure Request</a></li>
   			<li><a href="cap_req.xls">Capital Requisition Form</a></li>
			<li><a href="cap_pur_process.pdf">Flow Chart</a></li>
			<li><a href="payback_analysis_form.xls">Payback Analysis Form</a></li>
			<li><a href="roi_sample_worksheet.xls">ROI Sample Worksheet</a></li>
		</ul></li>
 
        	<li><a class="qmparent" href="javascript:void(0)">Forms</a>
		<ul>
			<li><a href="agreement.doc">Bill of Sales</a></li>
   			<li><a href="CustCreditCardForm.xls">Customer Credit Card Payment Form</a></li>
			<li><a href="../safety/driver_data_sheet.pdf">Driver Data Sheet</a></li>
			<li><a href="driver_mileage_report.doc">Driver Mileage Report</font></a></li>
			<li><a href="equip_storage_form.doc">Equipment Storage Notification</a></li>
            <li><a href="fixasts.doc">Fixed Asset Input Facility Input</a></li>
			<li><a href="transfers.doc">Fixed Assets (Transferred, Sold or Disposed)</a></li>
			<li><a href="new_cust_acct.doc">New Customer Account Set Up Form</a></li>
			<li><a href="terms_check_list.doc">Non-Standard Payment Terms Request</a></li>
			<li><a href="Terms_Waiver.doc">Non-Standard Payment Terms Waiver</a></li>
			<li><a href="payback_analysis_form.xls">Payback Analysis Form</a></li>
			<li><a href="../forms/petty_cash_reimbursement_request.xls">Petty Cash Reimbursement Request</a></li>
			<li><a href="Protowire_credit_Form.pdf">Protowire Customer Credit Request</a></li>
			<li><a href="roi_sample_worksheet.xls">ROI Sample Worksheet</a></li>
			<li><a href="temp_driver_authorization.doc">Temporary Driver Authorization</a></li>
			<li><a href="apcheck.doc">Tooling Allowance Reimbursement</a></li>
			<li><a href="Tool_Return_Scrap_Checklist.doc">Tool Return or Scrap Checklist</a></li>
		</ul></li>
 
			</div>
	<!-- Left column ends with above DIV class close -->
				<!-- Column 2 end -->
			<div class="col3">
				<!-- Column 3 start -->
				<h2>What Is Finance Doing?</h2>
				<!-- Column 3 end -->
 
			</div>
		</div>
	</div>
</div>
</div>
<div id="footer">
  <p>Phillips Plastics Corporation Intranet Copyright &copy; 2009
	<a href="http://validator.w3.org/check?uri=referer"><img
        src="http://www.w3.org/Icons/valid-xhtml10"
        alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
 
	<a href="http://jigsaw.w3.org/css-validator/check/referer">
    	<img style="border:0;width:88px;height:31px"
        	src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
	        alt="Valid CSS!" />
</a>
<!--[if IE 6]> <script type="text/javascript">qm_create(0,true,0,500,false,false,false,false,false);</script> <![endif]-->
 
</div>
</body>
</html>
                                              
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:

Select allOpen in new window

 

by: PhillipsPlasticsPosted on 2009-10-01 at 14:02:57ID: 25473211

Also I am actually using his 3 column liquid design.

 

by: myderrickPosted on 2009-10-16 at 01:27:58ID: 25587730

Hi All,

Normally I use two techniques dependent on 2 factors: whether a fixed height will hurt or not.

1. Fixed Height

With this technique I specify a fixed height for the container div (eg #container Height: 550px) and then set height of 100% for the sub divs that I ant equal. Since the height is set fixed for the container div, 100% for the child divs will make sense (eg 100% = 550px). This will be good if you are sure your data will not exceed the set height and that you will not mind a fixed height of the set height. See sample code below:

2. http://woorkup.com/2009/10/11/really-simple-css-trick-for-equal-height-columns/

This method is a great idea you could try.

Good luck

MD


<!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=utf-8" />
<title>Untitled Document</title>
 
<style type="text/css">
.content
{
		position:relative;
        overflow: auto;
        height:500px;
        width: 100%;
		
}
 
.menu-main
{
        position:absolute;
        width: 182px;   
        height:100%;
        border-right: solid 1px #CCCCCC; 
        text-align: left;
        float: left;
		background-color:#CCCCCC;
}
 
.main-body
{ 
        font-family: arial, verdana, sans-serif;
        font-size: 13px;
        width: 77%;
        float: right;
        margin-left:10px;
        padding-left:5px;
        text-align: left;  
		background-color:#00CC99;
		height:100%
}
 
</style>
</head>
 
<body>
 
<div class = "content">
  <div class = "menu-main">
 
    Main menu
  </div>
  <div class = "main-body">
    <p>kldsjfksjfds</p>
    <p>sdfnhsdf'</p>
    <p>sdfnhsdf</p>
    <p>dsfjsfds</p>
    <p>fdsjsdf</p>
    <p>dsfdsfds</p>
    <p>&nbsp;    </p>
  </div>
</div>
 
</body>
</html>
                                              
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:

Select allOpen in new window

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...