<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://jay.leask.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Digital Serenity : CSS, Code</title><link>http://jay.leask.com/archive/tags/CSS/Code/default.aspx</link><description>Tags: CSS, Code</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Fluid vs Set Content Pains</title><link>http://jay.leask.com/archive/2007/08/07/fluid-vs-set-content-pains.aspx</link><pubDate>Tue, 07 Aug 2007 16:37:53 GMT</pubDate><guid isPermaLink="false">8d8a2304-c812-41d6-94bc-4e6dd6490643:22</guid><dc:creator>jleask</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://jay.leask.com/rsscomments.aspx?PostID=22</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://jay.leask.com/commentapi.aspx?PostID=22</wfw:comment><comments>http://jay.leask.com/archive/2007/08/07/fluid-vs-set-content-pains.aspx#comments</comments><description>&lt;p&gt;Yes, the pun is intended ...&lt;/p&gt; &lt;p&gt;If you ever do front-end design work you have likely started to dabble in Cascading Style Sheets (CSS) - and if you haven't, you better start!&lt;/p&gt; &lt;p&gt;One limitation I've noticed over the years is how to have a set-width left panel (i.e., menu panel) and a fluid width right panel (i.e., content).&amp;nbsp; It's virtually impossible to do this without some form of JavaScript (in fact this is how I've always done it in the past).&amp;nbsp; Problem is once you get into CSS many people become purists very quick and using JS for this kind of a problem becomes something that makes even the newest CSS developer grumble.&lt;/p&gt; &lt;p&gt;I recently found a solution thanks to my subscription to &lt;a href="http://www.alistapart.com/" target="_blank"&gt;A List Apart&lt;/a&gt; (if you are a front-end n00b or experienced CSS dev, I highly suggest you put their feed in your news reader).&amp;nbsp; Thanks to &lt;a href="http://www.alistapart.com/authors/s/robswan" target="_blank"&gt;Rob Swan&lt;/a&gt;, who took the time to realize that DIVs are more flexible than we originally thought, we now have a fully CSS solution that works cross-browser (with a minor IE 5/6 only hack that still remains CSS pure).&lt;/p&gt; &lt;p&gt;The solution?&amp;nbsp; Turns out you can set the TOP/BOTTOM LEFT/RIGHT all at once.&amp;nbsp; I, like Rob, had always assumed if you set a TOP the browser would ignore the BOTTOM and likewise on the LEFT/RIGHT.&amp;nbsp; Turns out everything but IE 5 &amp;amp; 6 ignore that.&amp;nbsp; However, his IE only solution is almost as simple as the cross-browser solution.&lt;/p&gt; &lt;p&gt;Check out Rob's article &lt;a href="http://www.alistapart.com/articles/conflictingabsolutepositions" target="_blank"&gt;Conflicting Absolute Positions&lt;/a&gt;&amp;nbsp;where he gives a very detailed explination on how to solve the issue including code samples.&amp;nbsp; Thanks Rob!&lt;/p&gt; &lt;p&gt;So - how have you been fighting the battle between left and right content panes?&lt;/p&gt;&lt;img src="http://jay.leask.com/aggbug.aspx?PostID=22" width="1" height="1"&gt;</description><category domain="http://jay.leask.com/archive/tags/Code/default.aspx">Code</category><category domain="http://jay.leask.com/archive/tags/CSS/default.aspx">CSS</category></item></channel></rss>