The following is the quoted content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Equal height (method of having the same column height)</title> <style type="text/css"> body{ padding: 0; margin: 0; font-size: 12px; font-family: Arial, Helvetica, sans-serif; line-height: 140%; background:#E7DFD3; } #middle{ width: 580px; float:left; background:#FFFFFF; text-align:left; } #header,#footer{ background: #E8E8E8; width: 750px; text-align:center; } #sideleft{ width: 580px; float: left; position:relative; margin-left:-580px; } #sideright{ width: 170px; float: right; position:relative; margin: 0 -170px 0 0; background: #F0F0F0; } #footer{ clear:both;
} h1,h2,address,p{ margin: 0; padding: .8em; } h1,h2{font-size: 20px;} </style> <script type="text/javascript"> // <![CDATA[ function toggleContent(name,n) { var i,t='',el = document.getElementById(name); if (!el.origCont) el.origCont = el.innerHTML;
for (i=0;i<n;i++) t += el.origCont; el.innerHTML = t; } // ]]> </script> </head> <body> <div id="header"> <h1>Head</h1> <div id="middle"> <div id="sideright"> <div id="sideleft"> <h2>sideleft</h2> <p><a href="javascript:toggleContent('sideleft',1)">Default length</a> <a href="javascript:toggleContent('sideleft',2)">Longer page< /a></p> <p> It's not easy to move from a fixed, pixel-based design approach to a flexible, relative design approach. But if used correctly, it can be a natural choice for increasing accessibility and ease of use without making design sacrifices. </p> <p> A pixel is a non-scalable point on a computer screen, and a h3 is a word-sized square. Due to the change in font size, h3 A relative unit representing the user's preferred text size. </p> <p> It may be easier to go with a printed, fixed design because there is less to consider if the dimensions remain the same. However, if you adopt a flexible design method, you can make full use of the computer's <a href="http://product.yesky.com/catalog/345/" class="bluekey" target="_blank">monitor</a> and browser. </p> <p> Maybe you want your website to appear a certain way, but what your users want to see may be different. Anything forced on users undermines ease of use and therefore harms the success of the site. </p> <p> It's not easy to move from a fixed, pixel-based design approach to a flexible, relative design approach. But if used correctly, it can be a natural choice for increasing accessibility and ease of use without making design sacrifices. </p> </div>
<h2>sideright</h2> <p> It's not easy to move from a fixed, pixel-based design approach to a flexible, relative design approach. But if used correctly, it can be a natural choice for increasing accessibility and ease of use without making design sacrifices. </p> <p> A pixel is a non-scalable point on a computer screen, and a h3 is a word-sized square. Due to the change in font size, h3 A relative unit representing the user's preferred text size. </p> <p> It may be easier to go with a printed, fixed design because there is less to consider if the dimensions remain the same. However, if you adopt a flexible design approach, you can make full use of your computer's monitor and browser. </p> <p> Maybe you want your website to appear a certain way, but what your users want to see may be different. Anything forced on users undermines ease of use and therefore harms the success of the site. </p> </div></div> <div id="footer"> <address> Footer </address> <p>Production: <a href="http://homepage.yesky.com">Webpage Tao Bar</a></p> </div> </body> </html> <script language="Javascript"> var now = new Date(); document.write("<img src='http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer="+escape(document.referrer)+"&rand="+ now.getTime() + "&cur="+escape(document.URL)+"' border='0' alt='' width='0' height='0'>"); </script> <noscript> <img src="http://counter.yesky.com/counter.shtml?CID=54197&AID=-1&refer=noscriptcounter&cur=noscriptcounter" border='0' width='0' height='0'/> </noscript> |