Advertisement

10.02.2008 at 04:48PM PDT, ID: 23783598
[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.9

CSS 3 Column Layout - "Sidebars that HIDE with more/less content"

Asked by LyricalPink in Cascading Style Sheets (CSS), Hypertext Markup Language (HTML), Macromedia Dreamweaver

Tags: ,

I'm making a switch from tables to CSS, and am having issues with a certain effect.

I have a 3 column liquid layout, and I'm trying to get the left and right "sidebars" (the red & photo blocks) to HIDE when the content in the middle is more or less lengthy.  Ideally, the photo bar would show less or more photos in accordance with the middle content.

http://www.mylifeart.org/test.htmlStart 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:
<!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"> 
<!-- 
body  {
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #000000;
	background-color: #F5E8AA;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 100%;
}
 
/* Tips for Elastic layouts 
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.thrColElsHdr #container {
	width: 931px; /* the auto margins (in conjunction with a width) center the page */
	border: 1px solid #000000;
	text-align: left; /* this overrides the text-align: center on the body element. */
	vertical-align: top;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	background-color: #FFFCD9;
} 
.thrColElsHdr #header {
	background: #DDDDDD;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
	padding-top: 0;
	padding-right: 0px;
	padding-bottom: 0;
	padding-left: 0px;
} 
.thrColElsHdr #header h1 {
	margin: 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
	padding-top: 0px;
	padding-right: 0;
	padding-bottom: 0px;
	padding-left: 0;
}
 
/* Tips for sidebar1:
1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColElsHdr #sidebar1 p" rule.
*/
.thrColElsHdr #sidebar1 {
	float: left;
	width: 50px; /* top and bottom padding create visual space within this div */
	padding-top: 0px;
	padding-right: 0;
	padding-bottom: 0px;
	padding-left: 0;
	background-color: #990000;
	height: 90em;
}
.thrColElsHdr #sidebar2 {
	float: right;
	width: 180px; /* since this element is floated, a width must be given */
	background: #EBEBEB; /* top and bottom padding create visual space within this div */
	padding-top: 0px;
	padding-right: 0;
	padding-bottom: 0px;
	padding-left: 0;
	height: 100%;
}
.thrColElsHdr #sidebar1 h3, .thrColElsHdr #sidebar1 p, .thrColElsHdr #sidebar2 p, .thrColElsHdr #sidebar2 h3 {
	margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
	margin-right: 10px;
}
 
/* Tips for mainContent:
1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
*/
.thrColElsHdr #mainContent {
	margin-top: 0;
	margin-right: 9em;
	margin-bottom: 0;
	margin-left: 5em;
} 
.thrColElsHdr #footer {
	padding: 0 10px;
	background-color: #000000;
} 
.thrColElsHdr #footer p {
	margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
 
/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
	float: left;
	margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
	clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
.style1 {
	font-size: 12px;
	color: #FFFFFF;
}
body,td,th {
	font-family: Verdana;
	font-size: 12px;
}
a:link {
	color: #666666;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #666666;
}
a:hover {
	text-decoration: none;
	color: #990000;
}
a:active {
	text-decoration: none;
}
.style2 {	font-family: verdana;
	color: #CCCCCC;
	font-size: 10px;
}
.style3 {color: #000000}
--> 
</style>
<!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.thrColElsHdr #sidebar1, .thrColElsHdr #sidebar2 { padding-top: 30px; }
.thrColElsHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
 
<body class="thrColElsHdr">
 
<div id="container">
  <div id="header">
    <div id="sidebar1">
      <h3>&nbsp;</h3>
      <!-- end #sidebar1 -->
    </div>
    <div id="sidebar2">
    <!-- end #sidebar2 -->
    <a href="headshots_corrina2.html"><img src="images/headshots/corrina2_mini.jpg" width="90" height="90" border="0" /></a><img src="0blocks2/block_white.jpg" width="90" height="90" /><img src="0blocks/blackcolorblock.jpg" width="90" height="90" /><a href="comps_deborah4.html"><img src="images/compcardslifestyle/Deborah4_mini.jpg" width="90" height="90" border="0" /></a><a href="news.html"><img src="images/sidebar_news.jpg" width="90" height="90" border="0" /></a><a href="reels_innertwinkle.html"><img src="images/reel_innertwinkle.jpg" width="90" height="90" border="0" /></a><img src="0blocks2/grey_block.jpg" width="90" height="90" /><a href="thankyou1.html"><img src="images/thankyou1_small.jpg" width="90" height="90" border="0" /></a><a href="headshots_leah2.html"><img src="images/headshots/Leah2_mini.jpg" width="90" height="90" border="0" /></a><img src="0blocks2/dark_grey_block.jpg" width="90" height="90" /><a href="headshots_veronica.html"><img src="images/headshots/veronica_mini.jpg" width="90" height="90" border="0" /></a><a href="reels_suburbanhousewife.html"><img src="images/reels_downwardspiralsuburban.jpg" width="90" height="90" border="0" /></a><img src="0blocks2/block_white.jpg" width="90" height="90" /><a href="headshots_leah.html"><img src="images/headshots/leah_mini.jpg" width="90" height="90" border="0" /></a><a href="comps_deborah5.html"><img src="images/compcardslifestyle/Deborah5_mini.jpg" width="90" height="90" border="0" /></a><a href="classes.html"><img src="images/sidebar_workshops.jpg" width="90" height="90" border="0" /></a><a href="reels_cathy1.html"><img src="images/headshots/cathy2_mini.jpg" width="90" height="90" border="0" /></a><img src="0blocks/blackcolorblock.jpg" width="90" height="90" /><img src="0blocks2/grey_block.jpg" width="90" height="90" /><a href="headshots_fallinganvil.html"><img src="images/headshots/FallingAnvil_mini.jpg" width="90" height="90" border="0" /></a><a href="headshots_israel.html"><img src="images/headshots/israel_headshot_mini.jpg" width="90" height="90" border="0" /></a><img src="0blocks2/dark_grey_block.jpg" width="90" height="90" /><img src="0blocks2/block_white.jpg" width="90" height="90" /><a href="comps_deborah.html"><img src="images/compcardslifestyle/Deborah_mini.jpg" width="90" height="90" border="0" /></a><a href="comps_deborah2.html"><img src="images/compcardslifestyle/Deborah2_mini.jpg" width="90" height="90" border="0" /></a><img src="0blocks2/dark_grey_block.jpg" width="90" height="90" /><img src="0blocks2/block_white.jpg" width="90" height="90" /><img src="0blocks2/grey_block.jpg" width="90" height="90" /><a href="headshots_katherine2.html"><img src="images/headshots/katherine2_mini.jpg" width="90" height="90" border="0" /></a><img src="0blocks/blackcolorblock.jpg" width="90" height="90" /><img src="0blocks2/dark_grey_block.jpg" width="90" height="90" /><img src="0blocks2/block_white.jpg" width="90" height="90" /><img src="0blocks2/block_white.jpg" width="90" height="90" /><a href="headshots_deborah.html"><img src="images/headshots/Deborah_mini.jpg" width="90" height="90" border="0" /></a> </div>
    <h1>
      <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','700','height','175','src','xmlmenu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','xmlmenu' ); //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=9,0,28,0" width="700" height="175">
        <param name="movie" value="xmlmenu.swf" />
        <param name="quality" value="high" />
        <embed src="xmlmenu.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="700" height="175"></embed>
      </object></noscript>
</h1>
  <!-- end #header --></div>
  <div id="mainContent">
    <p align="left" class="style5" style="font-size: 22px"><span class="style6" style="font-size: 20px; font-weight: bold; font-family: verdana; color: #181818">&quot;Discover Your Inner Twinkle.&quot;</span></p>
    <p align="right" class="style5"><span class="style2"><span class="style3" style="font-weight: bold">Life Art - 212.560.2518</span><br />
    </span></p>
    <h2 align="left" style="color: #990000"><img src="images/israelpoint.jpg" alt="" width="250" height="150" hspace="10" vspace="6" border="0" align="right" />LIFE ART'S MISSION</h2>
    <p align="left">Capturing the essence of who you are, whether on paper, in photographs, or on video, is what we are all about. We help you relax and open yourself to inspiration, moment to moment. The end result is a unique product that stands out in the pile and showcases you as <br />
      the star that you are.<br />
  <br />
    </p>
    <h2 align="left"><span style="color: #990000">NOW SHOWING</span><br />
    </h2>
    <table width="579" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="137"><div align="center"><a href="headshots_katherine.html"><img src="images/home_katherine.jpg" width="115" height="100" /></a></div></td>
        <td width="442"><strong>Headshot Package: </strong>Katherine O&rsquo;Keefe<br />
            <a href="headshots_cathy2.html" style="font-weight: bold">Click here</a> to view several of the photos taken during Katherine&rsquo;s session. Katherine is a writer/actress currently performing regularly at &ldquo;Gotham City Improv&rdquo; as a member of the long form ensemble, &ldquo;Falling Anvil.&rdquo; During her consultation she requested versatile headshots that could be used for the stage work as well as film and television auditions. <br />
            <br /></td>
      </tr>
      <tr>
        <td><div align="center"><a href="headshots_deborah1.html"><img src="images/home_deborahvideoclip.jpg" width="115" height="100" /></a></div></td>
        <td><strong><br />
          &quot;The Whole Shibang&quot; Package:</strong> Debora Richards<br />
          <a href="reels_suburbanhousewife.html"><span style="font-weight: bold">Click here</span></a> to view the headshots, lifestyle photos and original clips developed for Debora by Life Art. Like many performers, Debora had some clips of her work, but felt she hadn&rsquo;t had the opportunity to showcase her talents in a meaty, starring role. Deciding to make her own opportunities, Debora partnered with Life Art to determine her &ldquo;type,&rdquo; take new headshots/lifestyle photos and develop original clips for her reel.<br />
          <br /></td>
      </tr>
      <tr>
        <td><div align="center"><a href="reels_cathy1.html"><img src="images/home_cathyvideoclip2.jpg" width="115" height="100" /></a></div></td>
        <td><strong>Reel Development: </strong>Cathy Simpson<br />
            <a href="reels_cathy1.html"><span style="font-weight: bold">Click here</span></a> to view Cathy&rsquo;s reel, edited by Life Art. Cathy is a stage/film/tv actress who performs regularly with the dramatic improv. company, &ldquo;Epione.&rdquo; Together with Life Art, Cathy clarified her &ldquo;type&rdquo; and refined her goals for her reel. Focusing on Cathy&rsquo;s unique strengths, the reel combines clips from Cathy&rsquo;s illustrious body of work and includes supplemental lifestyle photos, headshots, and original clips developed by Life Art. <span style="font-weight: bold"><a href="reels_cathy2.html">Click here</a></span> to view the two original clips developed for Cathy in their entirety.</td>
      </tr>
    </table>
    <p align="left"><strong><br />
          <br />
      Featured Life Art Video Shorts</strong></p>
    <table width="565" border="0" align="center" cellpadding="2" cellspacing="10">
      <tr>
        <td width="275"><div align="center"><a href="reels_innertwinkle.html"><img src="images/home_innertwinkle.jpg" width="275" height="141" border="0" /></a></div></td>
        <td width="252"><div align="center"><a href="reels_suburbanhousewife.html"><img src="images/home_downwardspiral2.jpg" width="250" height="141" border="0" /></a></div></td>
      </tr>
      <tr>
        <td><div align="center" style="font-size: 11px">Click Here to View <br />
          &ldquo;Inner Twinkle.&rdquo; </div></td>
        <td><div align="center" style="font-size: 11px">Click Here to View <br />
          &ldquo;The Downward Spiral of the Suburban Homemaker.&rdquo; </div></td>
      </tr>
    </table>
    <p align="left"><span class="style4">All are video shorts created through Life Art Improvisations in collaboration with our clients.</span><br />
        <br />
    </p>
    <p align="left"><strong>Special Thanks To:</strong><br />
      Although none of the following companies are connected to Life Art directly or the creation of this site, we sure do enjoy their products. Thanks to <a href="http://www.bhphotovideo.com" target="_blank">B &amp; H Camera Supply</a> for all the equipment, <a href="http://www.staples.com" target="_blank">Staples</a> for more paper clips than we&rsquo;ll ever use, <a href="http://www.starbucks.com" target="_blank">Starbucks</a> for the occasional jolt, <a href="https://www.dunkindonuts.com/" target="_blank">Duncan Doughnuts</a> for the jolt on a budget, <a href="http://www.maccosmetics.com/home.tmpl?ngextredir=1" target="_blank">Mac Cosmetics</a> for the fantastic training you&rsquo;ve provided to some of our make up designers, <a href="http://www.apple.com/" target="_blank">Apple Computers</a> for helping me make the transition from PC, <a href="http://www.secondcity.com/" target="_blank">Second City</a>, <a href="http://www.gothamcityimprov.com/" target="_blank">Gotham City Improv</a>, <a href="http://www.groundlings.com/start.htm" target="_blank">The Groundlings</a> and <a href="http://www.thepit-nyc.com/" target="_blank">The Pit</a> for all the laughs, <a href="http://www.thelittlegym.com/" target="_blank">Little Gym</a> and <a href="http://www.musictogether.com/" target="_blank">Music Together</a> for entertaining the ones we love, <a href="http://www.finaldraft.com/" target="_blank">Final Draft</a>, <a href="http://www.apple.com/finalcutstudio/finalcutpro/" target="_blank">Final Cut Pro </a>and now for the final word, the grand finale &ndash; thanks to all of you for visiting our site!</p>
    <p align="left"><strong>Disclaimer:</strong><br />
      By choosing to be a Life Art client you're agreeing to the usage of your photographs, videos, reels and all other content and services created with us on the website and/or in other forms of marketing and advertising. </p>
    <h1>&nbsp;</h1>
  <!-- end #mainContent --></div>
 <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
   <div id="footer">
    <p align="center" class="style1"><span class="style2">© 2008 Life Art  212.560.2518<br />
Site Design by <a href="http://www.virtual-actor.com" target="_blank"><strong>Virtual-Actor.com</strong></a></span></p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
[+][-]10.03.2008 at 07:49AM PDT, ID: 22634530

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.

 
[+][-]10.03.2008 at 09:40AM PDT, ID: 22635612

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.

 
[+][-]10.03.2008 at 11:25AM PDT, ID: 22636598

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), Macromedia Dreamweaver
Sign Up Now!
Solution Provided By: yessirnosir
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628