Advertisement

09.09.2008 at 07:45PM PDT, ID: 23717912
[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!

7.6

CSS DIV's That Grow According To Amount Of Content Inside

Asked by datacomsmt in Cascading Style Sheets (CSS), Hypertext Markup Language (HTML)

Tags: ,

I'd like to create a template using only DIV's to manage the layout and content.

I'm having a problem with the main content DIV in the code below (named: copy-content).

I need the height to to be set to grow depending on the amount on content inside it or sit at a minimum height if no content exists. If the content goes over the minimum height it overlaps the footer DIV below.

Can anyone point out where I'm going wrong here?

Thanks,
Matt.Start Free Trial
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:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
<!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"/>
 
<style type="text/css">
/* Start Universal Site Properties */
 
html 				{height: 100%;
					margin-bottom: 1px;
					padding: 0px 0px;}
 
body				{background-color: #FFFFFF;}
 
/* End Universal Site Properties */
 
/* Start Base Layout Properties */
 
#wrapper			{position: relative;
					border: 0px solid red;}
 
#header-container	{display: block;
                    height: 114px;
                    width: 100%;
                    background: url("http://Plumage.businesscatalyst.com/images/bg-header-container.gif");
					background-position: top left;
					background-repeat: repeat-x;
					margin: 0 0;
					padding: 0 0;
					text-align: center;
					border: 0px solid red;}
                    
#header-content		{position: relative;
					display: block;
                    height: 114px;
                    width: 970px;
					background: url("http://Plumage.businesscatalyst.com/images/bg-header-content.gif");
					background-position: top left;
					background-repeat: repeat-x;
					margin: 0 auto 0 auto;
					padding: 0 0;
					border: 0px solid blue;}
                    
#menu-container		{display: block;
                    height: 60px;
                    width: 100%;
                    background: url("http://Plumage.businesscatalyst.com/images/bg-menu-container.gif");
					background-position: top left;
					background-repeat: repeat-x;
					margin: 0 0;
					padding: 0 0;
					text-align: center;
					border: 0px solid red;}
                    
#menu-content		{position: relative;
					display: block;
                    height: 60px;
                    width: 970px;
					background: url("http://Plumage.businesscatalyst.com/images/bg-menu-content.gif");
					background-position: top left;
					background-repeat: no-repeat;
					margin: 0 auto 0 auto;
					padding: 0 0;
					border: 0px solid blue;}
                    
#copy-container		{display: block;
                    height: 657px;
                    width: 100%;
					background-color: #f0eff0;
					margin: 0 0;
					padding: 0 0;
					border: 0px solid red;}
                    
#copy-content		{display: block;
                    height: 657px;
                    width: 970px;
                    background-color: #FFFFFF;
					margin: 0 auto 0 auto;
					padding: 0 0;
					border-left: 1px solid #F0EFF0;
                    border-right: 1px solid #F0EFF0;
                    border-top: 0px solid #F0EFF0;
                    border-bottom: 1px solid #F0EFF0;}
 
#rotator-content	{display: block;
                    height: 347px;
                    width: 891px;
                    background-color: #FFFFFF;
					margin: 0 auto 0 auto;
					padding: 0 0;
					border: 0px solid red;}
                    
#content-area		{position: relative;
					display: block;
                    height: 100%;
                    overflow: hidden;
                    width: 891px;
                    background-color: #FFFFFF;
					margin: 37px auto;
					padding: 0 0;
                    text-align: left;
					border: 1px solid green;}
                    
#footer-container	{display: block;
                    height: 170px;
                    width: 100%;
                    background: url("http://Plumage.businesscatalyst.com/images/bg-footer-container.gif");
					background-position: top left;
					background-repeat: repeat-x;
					margin: 0 0;
					padding: 0 0;
					text-align: center;
					border: 0px solid red;}
                    
#footer-content		{display: block;
                    height: 170px;
                    width: 970px;
                    background: url("http://Plumage.businesscatalyst.com/images/bg-footer-content.gif");
					background-position: top left;
					background-repeat: repeat-x;
					margin: 0 auto 0 auto;
					padding: 20px 0px 0px 0px;
					border: 1px solid red;}
 
/* End Base Layout Properties */
 
/* Start Page Element Properties */
 
.mouse				{cursor: pointer;
					cursor: hand;}
 
#top-logo			{position: absolute;
					left: 35px;
                    top: 0px;}
                    
#top-right			{position: absolute;
					right: 54px;
                    top: 0px;}
 
#menu-left			{position: absolute;
					left: 0px;
                    top: 0px;
                    width: 400px;
                    height: 60px;}
 
#menu-right			{position: absolute;
					right: 39px;
                    bottom: 0px;
                    width: 570px;
                    height: 34px;
					border: 0px solid red;}
 
#menu-area			{display: block;
					float: right;}
                    
#left-content-area	{display: block;
					width: 648px;
					height: auto;
                    padding-top: 0px;
					text-decoration: none;
                    margin: 0px 0px 0px 0px;
					border: 0px solid red;}
 
#newsletter-area	{display: block;
					position: absolute;
					right: 0px;
                    top: 0px;
					width: 172px; /* 202px */
					height: 201px; /* 233px */
					background: url(http://Plumage.businesscatalyst.com/images/bg-sign-up.gif) 0 0 no-repeat;
					text-decoration: none;
                    margin: 0px 0px 0px 0px;
                    padding: 16px 30px 16px 0px;
					border: 0px solid red;}
					                                      
/* End Page Element Properties */
 
 
/* Start Standard Font Properties */
 
h1								{font-family: Times New Roman, Georgia, Arial, Sans-Serif;
                                font-size: 20px;
                                font-weight: none;
                                color: #434343;
                                text-transform: none;
                                vertical-align: none;
                                text-align: none;
                                line-height: 100%;
                                word-spacing: none;
                                padding: 0px 0px 4px 0px;
                                margin-bottom: 0px;}
h1 a:link 						{text-decoration:none; font-weight: none; color: #434343;}
h1 a:visited 					{text-decoration:none; font-weight: none; color: #434343;}
h1 a:hover 						{text-decoration:underline; font-weight: none; color: #434343;}
h1 a:active						{text-decoration:underline; font-weight: none; color: #434343;}
 
h2								{font-family: Arial, Verdana, Helvetica, Sans-Serif;
                                font-size: 15px;
                                font-weight: none;
                                color: #8c8b8b;
                                text-transform: none;
                                vertical-align: none;
                                text-align: none;
                                line-height: 150%;
                                word-spacing: none;
                                padding: 0px;
                                margin-bottom: 10px;}
h2 a:link 						{text-decoration:none; font-weight: bold; color: #8c1d20;}
h2 a:visited 					{text-decoration:none; font-weight: bold; color: #8c1d20;}
h2 a:hover 						{text-decoration:underline; font-weight: bold; color: #8c1d20;}
h2 a:active						{text-decoration:underline; font-weight: bold; color: #8c1d20;}
 
h3								{font-family: Arial, Verdana, Helvetica, Sans-Serif;
                                font-size: 13px;
                                font-weight: none;
                                color: #8c8b8b;
                                text-transform: uppercase;
                                vertical-align: none;
                                text-align: none;
                                line-height: 250%;
                                word-spacing: none;
                                padding: 0px;
                                margin-bottom: 10px;}
h3 a:link 						{text-decoration:none; font-weight: bold; color: #8c8b8b;}
h3 a:visited 					{text-decoration:none; font-weight: bold; color: #8c8b8b;}
h3 a:hover 						{text-decoration:underline; font-weight: bold; color: #8c8b8b;}
h3 a:active						{text-decoration:underline; font-weight: bold; color: #8c8b8b;}
 
p								{font-family: Arial, Verdana, Helvetica, Sans-Serif;
                                font-size: 14px;
                                font-weight: none;
                                color: #8c8b8b;
                                text-transform: none;
                                vertical-align: none;
                                text-align: none;
                                line-height: 150%;
                                word-spacing: none;
                                padding: 0px;
                                margin-bottom: 10px;}
p a:link 						{text-decoration:none; font-weight: none; color: #8c1d20;}
p a:visited 					{text-decoration:none; font-weight: none; color: #8c1d20;}
p a:hover 						{text-decoration:underline; font-weight: none; color: #8c1d20;}
p a:active						{text-decoration:underline; font-weight: none; color: #8c1d20;}
 
#left-content-area p			{font-family: Arial, Verdana, Helvetica, Sans-Serif;
                                font-size: 14px;
                                font-weight: none;
                                color: #8c8b8b;
                                text-transform: none;
                                vertical-align: none;
                                text-align: none;
                                line-height: 150%;
                                word-spacing: none;
                                padding: 0px;
                                margin-bottom: 10px;}
#left-content-area p a:link 	{text-decoration:none; font-weight: none; color:#8c1d20;}
#left-content-area p a:visited 	{text-decoration:none; font-weight: none; color:#8c1d20;}
#left-content-area p a:hover 	{text-decoration:underline; font-weight: none; color:#8c1d20;}
#left-content-area p a:active	{text-decoration:underline; font-weight: none; color:#8c1d20;}
 
#newsletter-area h1				{background: url(http://Plumage.businesscatalyst.com/images/dots-grey.gif) 8px 3px no-repeat;
								position: relative;
                                display: block;
                                height: 20px;
                                width: 140px;
								font-family: Times New Roman, Georgia, Arial, Sans-Serif;
                                font-size: 20px;
                                font-weight: none;
                                color: #434343;
                                text-transform: none;
                                vertical-align: none;
                                text-align: none;
                                line-height: 100%;
                                word-spacing: none;
                                padding: 0px 0px 4px 30px;
                                margin: 0px;
                                border: 0px solid red;}
#newsletter-area h1 a:link 		{text-decoration:none; font-weight: none; color:#434343;}
#newsletter-area h1 a:visited 	{text-decoration:none; font-weight: none; color:#434343;}
#newsletter-area h1 a:hover 	{text-decoration:underline; font-weight: none; color:#434343;}
#newsletter-area h1 a:active	{text-decoration:underline; font-weight: none; color:#434343;}
 
#newsletter-area p				{font-family: Arial, Verdana, Helvetica, Sans-Serif;
                                font-size: 13px;
                                font-weight: none;
                                color: #8c8b8b;
                                text-transform: none;
                                vertical-align: none;
                                text-align: none;
                                line-height: 150%;
                                word-spacing: none;
                                padding: 0px 0px 0px 30px;
                                margin-bottom: 0px;}
#newsletter-area p a:link 		{text-decoration:none; font-weight: none; color:#373737;}
#newsletter-area p a:visited 	{text-decoration:none; font-weight: none; color:#373737;}
#newsletter-area p a:hover 		{text-decoration:underline; font-weight: none; color:#373737;}
#newsletter-area p a:active		{text-decoration:underline; font-weight: none; color:#373737;}
 
#newsletter-area input					{background-color: #FFFFFF;
                                        border: 1px solid #d4d4d4;
                                        font-family: Arial, Verdana, Helvetica, Sans-Serif;
                                		font-size: 11px;
                                        color: #8c8b8b;
                                        height: 14px;
                                        margin: 7px 2px 0px 30px;
                                        padding: 3px 5px;
                                        width: 140px;}
#newsletter-area input:hover			{border: 1px solid #858585;}
#newsletter-area input:focus			{border: 1px solid #858585;}
 
#newsletter-area input.cat_button		{display: block;
                                        height: 13px;
                                        width: 92px;
                                        background-image: url(http://Plumage.businesscatalyst.com/images/submit-button.gif);
                                        background-position: 0 0;
                                        background-repeat: no-repeat;
                                        border: 0px solid red;
                                        margin: 7px 2px 0px 30px;
                                        padding: 0px;
                                        cursor: pointer;
                                        cursor: hand;}
#newsletter-area input.cat_button:hover	{background-position: -92px 0;}
#newsletter-area input.cat_button:focus	{background-position: -92px 0;}
 
/* End Standard Font Properties */
 
</style>
 
<title>Plumage | For Clothes</title>
<link rel="Shortcut Icon" href="http://Plumage.businesscatalyst.com/favicon.ico">
</head>
<body id="wrapper">
 
    <div id="header-container">
        <div id="header-content">
         <a href="/home"><img src="http://Plumage.businesscatalyst.com/images/top-logo.gif" alt="Plumage For Clothes" title="Plumage For Clothes" id="top-logo" border="0" /></a>
         <a href="/shop"><img src="http://Plumage.businesscatalyst.com/images/top-right.gif" alt="Online Shopping Now Available" title="Online Shopping Now Available" id="top-right" border="0" /></a>
         </div>
    </div>
    
	<div id="menu-container">
        <div id="menu-content">
        <img src="http://Plumage.businesscatalyst.com/images/spring-collection.gif" alt="Spring Collection Out Now" title="Spring Collection Out Now" id="menu-left" border="0" />
        <div id="menu-right"><div id="menu-area">MAIN MENU HERE</div></div>
        </div>    
    </div>
    
    <div id="copy-container">
    <div id="copy-content">
    	<div id="rotator-content"><img src="http://plumage.businesscatalyst.com/images/rotator-2.jpg" border="0" /></div>
        <div id="content-area">
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			<p>PAGE CONTENT HERE</p>
			</div>
    </div>
    </div>
    
	<div id="footer-container">
    	<div id="footer-content">FOOTER CONTENT HERE</div>
    </div>
 
</body>
</html>
[+][-]09.09.2008 at 08:43PM PDT, ID: 22434833

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 09:48PM PDT, ID: 22435042

View this solution now by starting your 7-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

Zones: Cascading Style Sheets (CSS), Hypertext Markup Language (HTML)
Tags: CSS, Firefox 2.0
Sign Up Now!
Solution Provided By: kiranvj
Participating Experts: 3
Solution Grade: B
 
 
[+][-]09.10.2008 at 04:03PM PDT, ID: 22444002

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.12.2008 at 08:31PM PDT, ID: 22465462

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.14.2008 at 08:53PM PDT, ID: 22475832

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.14.2008 at 09:22PM PDT, ID: 22475879

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.14.2008 at 09:50PM PDT, ID: 22475942

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628