<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx</link><description>Okay, firstly let me make it very clear that I know very little about CSS. The nuances of layout in CSS fill me with fear, particularly in terms of trying to get all browsers to behave sensibly. Until recently, I thought that the C# in Depth web site</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647076</link><pubDate>Sun, 07 Sep 2008 19:02:44 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647076</guid><dc:creator>skeet</dc:creator><description>&lt;p&gt;@Frederik: Floating both leftmenu and content doesn&amp;#39;t work for the C# in Depth site: the content ends up beneath the menu.&lt;/p&gt;
&lt;p&gt;@Peter: Removing the float entirely works fine on all my test browsers, even without the IE8 compatibility hack. Hooray!&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647076" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647072</link><pubDate>Sun, 07 Sep 2008 16:59:59 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647072</guid><dc:creator>skeet</dc:creator><description>&lt;p&gt;@Frederik: Thanks for spotting the title tag issue. Fixed now on the page. (I&amp;#39;m leaving it up in its broken state as a demonstration of the oddness.)&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tried floating both of them - seems a little bit odd, but worth a try, along with trying to remove the float entirely as Peter suggested. Thanks!&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647072" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647066</link><pubDate>Sun, 07 Sep 2008 13:58:16 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647066</guid><dc:creator>Frederik Vig</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You seem to have closed your title tag twice, but that could just be a type error. When it comes to the CSS issue, have you tried floating instead of using absolute positiong? &lt;/p&gt;
&lt;p&gt;div.leftmenu&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;float: left;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;width: 15em;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;background-color: #00dddd;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;div.content&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;background-color: #dd00dd;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;padding-left: 1em;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;padding-right: 1em;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;padding-top: 1em;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;float: left;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;Frederik&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647066" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647053</link><pubDate>Sun, 07 Sep 2008 09:18:30 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647053</guid><dc:creator>Marc Gravell</dc:creator><description>&lt;p&gt;Re &amp;quot;Compatibility View&amp;quot; (Perry) - last time I checked, even this didn&amp;#39;t work fully on all sites. I seem to recall Google Maps going completely freaky in either mode, for example (Google may have fixed this since then... who knows)&lt;/p&gt;
&lt;p&gt;Gotta say, though - I&amp;#39;m lovin&amp;#39; Chrome ;-p&lt;/p&gt;
&lt;p&gt;Marc&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647053" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647052</link><pubDate>Sun, 07 Sep 2008 08:06:20 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647052</guid><dc:creator>skeet</dc:creator><description>&lt;p&gt;@Peter: Good question. Frankly, I can&amp;#39;t remember. This is the kind of thing I don&amp;#39;t like about CSS - you experiment until something works, but unless you really keep track of all the problems which occurred when you *don&amp;#39;t* have it all &amp;quot;just right&amp;quot; it&amp;#39;s hard to give reasons later.&lt;/p&gt;
&lt;p&gt;Basically, I find CSS layout hard to reason about in the way that I do with other languages.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try getting rid of the float completely and test it on all the different browsers. It would be nice to be able to get rid of the hacks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647052" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647051</link><pubDate>Sun, 07 Sep 2008 07:39:57 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647051</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;Not that removing the &amp;quot;position: float&amp;quot; seems to fix the problem anyway, but it&amp;#39;s not clear to me why you&amp;#39;re using that anyway. &amp;nbsp;The &amp;quot;position: absolute&amp;quot; div gets taken out of the layout flow anyway. &amp;nbsp;What is it about &amp;quot;position: float&amp;quot; for the content div that&amp;#39;s useful for the page in this case?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647051" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647046</link><pubDate>Sun, 07 Sep 2008 06:33:08 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647046</guid><dc:creator>skeet</dc:creator><description>&lt;p&gt;Update: Just found &lt;a rel="nofollow" target="_new" href="http://www.positioniseverything.net/explorer/doubled-margin.html"&gt;www.positioniseverything.net/.../doubled-margin.html&lt;/a&gt; and added &amp;quot;display: inline&amp;quot; to the floated style. It shouldn&amp;#39;t do anything, but it fixes IE6 without breaking anything else. Hooray!&lt;/p&gt;
&lt;p&gt;So, it would be nice to get an IE8 fix just through CSS, but at least the site should work for everyone now :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647046" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647045</link><pubDate>Sun, 07 Sep 2008 06:27:42 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647045</guid><dc:creator>skeet</dc:creator><description>&lt;p&gt;@Perry: Thanks, hadn&amp;#39;t tried that. Having added &amp;quot;&amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=EmulateIE7&amp;quot; /&amp;gt;&amp;quot; to the master page, C# in Depth is now rendering properly. Thanks so much!&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t like using hacks like this. I want to be properly standards-compliant, and I *thought* that the CSS was already following standards. I&amp;#39;d still be very grateful to anyone who knows how to fix the CSS itself to work on IE8 and IE6 without breaking the others!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647045" width="1" height="1"&gt;</description></item><item><title>re: Annoying IE8 beta 2 CSS breakage</title><link>http://msmvps.com/blogs/jon_skeet/archive/2008/09/06/annoying-ie8-beta-2-css-breakage.aspx#1647044</link><pubDate>Sun, 07 Sep 2008 05:58:56 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647044</guid><dc:creator>Perry</dc:creator><description>&lt;p&gt;BUT, if you click the new &amp;quot;Compatibility View&amp;quot; button to the right of the address text box it &amp;quot;fixes&amp;quot; the issues and everything looks hunky-dory!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647044" width="1" height="1"&gt;</description></item></channel></rss>