<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: CSS: The Oldest Question in the Book</title><link>http://forums.asp.net/thread/2351200.aspx</link><pubDate>Mon, 12 May 2008 04:33:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2351200</guid><dc:creator>rmdw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2351200.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2351200</wfw:commentRss><description>&lt;p&gt;Well folks, I went back to basics and built my own version of a 3-column layout.&amp;nbsp; Then I adopted Adam McIntyre&amp;#39;s Javavascript code to keep the column heights the same.&amp;nbsp; You can read more about it &lt;a href="http://mwtech.blogspot.com/2008/05/in-search-of-perfect-3-column-css.html" target="_blank"&gt;here&lt;/a&gt; and download the same project too.&amp;nbsp; The one thing I can&amp;#39;t figure out is why, in Firefox 2.0 only, the container&amp;#39;s background colour doesn&amp;#39;t appear when the middle column doesn&amp;#39;t extend all the way to the bottom.&lt;/p&gt;&lt;p&gt;Robert W.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS: The Oldest Question in the Book</title><link>http://forums.asp.net/thread/2351098.aspx</link><pubDate>Mon, 12 May 2008 02:40:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2351098</guid><dc:creator>rmdw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2351098.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2351098</wfw:commentRss><description>&lt;p&gt;Quick Update: That Holy Grail article is excellent except that it doesn&amp;#39;t work in IE7.&amp;nbsp; I&amp;#39;m nowhere near the expert to understand how to fix it.&lt;/p&gt;&lt;p&gt;Robert&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS: The Oldest Question in the Book</title><link>http://forums.asp.net/thread/2351004.aspx</link><pubDate>Mon, 12 May 2008 00:30:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2351004</guid><dc:creator>rmdw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2351004.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2351004</wfw:commentRss><description>&lt;p&gt;Thank you for your further input.&amp;nbsp; That &amp;quot;Holy Grail&amp;quot; article which Kelsey referred me to seems to be just the ticket!&amp;nbsp; I&amp;#39;m going to try that first.&amp;nbsp; If it works, then I&amp;#39;ll base much of my future layouts on the article because it provides a solid reasoning behind the approach to make adjustments to effect all kinds of different layouts.&lt;/p&gt;&lt;p&gt;Robert&lt;/p&gt;&lt;p&gt;P.S. For those of us old enough to remember the pre-Internet days it&amp;#39;s quite marvelous being a software developer nowadays!!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS: The Oldest Question in the Book</title><link>http://forums.asp.net/thread/2351000.aspx</link><pubDate>Mon, 12 May 2008 00:19:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2351000</guid><dc:creator>eyesea</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2351000.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2351000</wfw:commentRss><description>&lt;p&gt;I have run in to a similar sort of problem when coding &amp;quot;tight&amp;quot; pages for graphic effects. One thing you didn&amp;#39;t mention is how this looks in different browsers. Apparently some browsers set a default margin, which can really make floats tricky. In order to clear that out from the get go I put this in my CSS:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;html&amp;nbsp; {&lt;/p&gt;
&lt;p&gt;margin: 0;&lt;/p&gt;
&lt;p&gt;padding: 0;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That often helps. I put it in &amp;#39;html&amp;#39; instead of &amp;#39;body&amp;#39; because different browsers read the DOM differently. &lt;/p&gt;
&lt;p&gt;Even with this I often have to resort to absolute postitioning and for IE I often have to use negative numbers. &lt;/p&gt;
&lt;p&gt;A site I am currently working on with some of these techniques is here - &lt;a href="http://hitest.leswarren.com/"&gt;http://hitest.leswarren.com&lt;/a&gt; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I learned a lot about the DOM here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.guistuff.com/"&gt;http://www.guistuff.com/&lt;/a&gt;&amp;nbsp; in the tutorials section.&lt;/p&gt;
&lt;p&gt;I have been finding some good info and ideas here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.positioniseverything.net/"&gt;http://www.positioniseverything.net/&lt;/a&gt;&amp;nbsp;although I feel I have to take some of it with a grain of salt.&lt;/p&gt;
&lt;p&gt;I hope this can help you some. Am anxious to see how your solution works out. &lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</description></item><item><title>Re: CSS: The Oldest Question in the Book</title><link>http://forums.asp.net/thread/2350884.aspx</link><pubDate>Sun, 11 May 2008 20:58:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350884</guid><dc:creator>rmdw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350884.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2350884</wfw:commentRss><description>&lt;p&gt;Kelsey,&lt;/p&gt;&lt;p&gt;Thank you for your tip and for the article, which I&amp;#39;m going to read thoroughly in a minute.&lt;/p&gt;&lt;p&gt;I decided to try your % idea first.&amp;nbsp; Here&amp;#39;s something weird: I set the mainContent width to 85%.&amp;nbsp; Then when:&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;The leftMenu width was set to 15%, the mainContent would always display below the leftMenu.&lt;/li&gt;&lt;li&gt;The leftMenu width was set to 12%, the two DIVs seemed to work well together albeit with a gap on the far right of mainContent.&lt;/li&gt;&lt;li&gt;The leftMenu width was set to 13% or 14% I had mixed results.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I&amp;#39;m curious as to why things didn&amp;#39;t work out correctly when the leftMenu width was set to 15% ?&amp;nbsp; After all, there&amp;#39;s nothing else on that row of objects, so how come 15% + 85% != 100% ?&lt;/p&gt;&lt;p&gt;Robert&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: CSS: The Oldest Question in the Book</title><link>http://forums.asp.net/thread/2350525.aspx</link><pubDate>Sun, 11 May 2008 11:49:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350525</guid><dc:creator>KelseyThornton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350525.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2350525</wfw:commentRss><description>&lt;p&gt;Hi.&lt;br /&gt;You could change your &amp;quot;leftMenu&amp;quot; DIv&amp;#39;s width to a percentage value (e.g. 12%).&amp;nbsp; then you can have your &amp;quot;container&amp;quot; width at, e.g. 88%.&lt;/p&gt;
&lt;p&gt;Check out &lt;a href="http://forums.asp.net/t/1259162.aspx"&gt;http://forums.asp.net/t/1259162.aspx&lt;/a&gt;&amp;nbsp;too.&amp;#39;&lt;/p&gt;
&lt;p&gt;I can also highly recommend &lt;a href="http://www.alistapart.com/articles/holygrail"&gt;http://www.alistapart.com/articles/holygrail&lt;/a&gt;, a really good source for CSS links.&lt;/p&gt;</description></item><item><title>CSS: The Oldest Question in the Book</title><link>http://forums.asp.net/thread/2350317.aspx</link><pubDate>Sun, 11 May 2008 06:46:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2350317</guid><dc:creator>rmdw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2350317.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2350317</wfw:commentRss><description>&lt;p&gt;Just when I think I have a complete handle on CSS, something comes along to pop that bubble of confidence!&amp;nbsp; I&amp;#39;m working on a simple series of web pages that have:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;A header&lt;/li&gt;&lt;li&gt;A left menu&lt;/li&gt;&lt;li&gt;The main content directly to the right of the left menu&lt;/li&gt;&lt;li&gt;A footer&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;So essentially a 2-column layout.&amp;nbsp; I know the old trick of setting the background colour to be the same as either the left or right DIV (the left menu or main content in this case) but I like to have gradient backgrounds.&amp;nbsp; Here&amp;#39;s an &lt;a href="http://mwtech.com/downloads/public/CSS-2columns.jpg" target="_blank"&gt;example of the page&lt;/a&gt; I&amp;#39;m working on.&amp;nbsp; Do you notice that there&amp;#39;s a large white gap on the right and below the main content DIV but above the footer?&amp;nbsp; I&amp;#39;ve been playing around with CSS for a couple of hours now and just can&amp;#39;t seem to figure out how to make it work.&amp;nbsp; I&amp;#39;m hoping that CSS guru might be able to help.&lt;/p&gt;&lt;p&gt;Here are the pertinent parts of the CSS file:&lt;/p&gt;&lt;p&gt;html, body &lt;br /&gt;{&lt;br /&gt;&amp;nbsp; background-color:white;&lt;br /&gt;&amp;nbsp; margin:0;&lt;br /&gt;&amp;nbsp; border:none;&lt;br /&gt;&amp;nbsp; width:100%;&lt;br /&gt;&amp;nbsp; min-width:100%;&lt;br /&gt;} &lt;br /&gt;&lt;/p&gt;&lt;p&gt;div.container &lt;br /&gt;{&lt;br /&gt;&amp;nbsp; width:100%;&lt;br /&gt;&amp;nbsp; min-width:950px;&lt;br /&gt;&amp;nbsp; margin:auto;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;div.leftMenu&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; float:left;&lt;br /&gt;&amp;nbsp; width:140px;&lt;br /&gt;&amp;nbsp; min-height:550px;&lt;br /&gt;&amp;nbsp; vertical-align:top;&lt;br /&gt;&amp;nbsp; margin:0;&lt;br /&gt;&amp;nbsp; padding:10px;&lt;br /&gt;&amp;nbsp; padding-top:130px;&lt;br /&gt;&amp;nbsp; border:none;&lt;br /&gt;&amp;nbsp; background:lightgreen url(/Images/Backgrounds/blueGreenGradient.jpg);&lt;br /&gt;}&lt;br /&gt;&lt;/p&gt;&lt;p&gt;div.mainContent&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; float:left;&lt;br /&gt;&amp;nbsp; background:lightblue url(/Images/Backgrounds/lightBlueGradientTall.jpg);&lt;br /&gt;&amp;nbsp; height:100%;&lt;br /&gt;&amp;nbsp; width:80%;&lt;br /&gt;&amp;nbsp; margin:auto;&lt;br /&gt;&amp;nbsp; vertical-align:top;&lt;br /&gt;}&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I don&amp;#39;t know if this will help, but in &amp;quot;div.mainContent&amp;quot; if I increase the width to 90% then this DIV is forced below the left panel.&amp;nbsp; That&amp;#39;s clearly not what I want.&amp;nbsp; What I&amp;#39;d like is for the main content to occupy 100% of the width to the right of the left panel.&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;&lt;p&gt;Robert W.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>