<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>White Space around the Silverlight 1.1 Root Canvas</title><link>http://blogs.msdn.com/b/gduthie/archive/2007/09/26/white-space-around-the-silverlight-1-1-root-canvas.aspx</link><description>Figured since I just spent a good bit of time chasing this down, it would make sense to post a tip about it... I'm working on updates to the web site for ReMIX 07 Boston , and I'm in the process of adding a Silverlight-enabled Session/Speaker/Bio page</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: White Space around the Silverlight 1.1 Root Canvas</title><link>http://blogs.msdn.com/b/gduthie/archive/2007/09/26/white-space-around-the-silverlight-1-1-root-canvas.aspx#5182176</link><pubDate>Fri, 28 Sep 2007 10:59:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5182176</guid><dc:creator>balla</dc:creator><description>&lt;p&gt;According to your iframe example what would probably also work is:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;body { margin: 0px; padding: 0px; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/style&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5182176" width="1" height="1"&gt;</description></item><item><title>re: White Space around the Silverlight 1.1 Root Canvas</title><link>http://blogs.msdn.com/b/gduthie/archive/2007/09/26/white-space-around-the-silverlight-1-1-root-canvas.aspx#5146909</link><pubDate>Wed, 26 Sep 2007 19:08:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5146909</guid><dc:creator>DEvHammer</dc:creator><description>&lt;p&gt;Excellent point, Bj&amp;#246;rn.&lt;/p&gt;
&lt;p&gt;You're right that my solution could be considered somewhat of a hack, but it's what worked for my solution, in which the Silverlight app is added to an existing ASP.NET Content control via an &amp;lt;iframe&amp;gt; element. As such, there aren't any other elements in that part of the tree that might overlap.&lt;/p&gt;
&lt;p&gt;But I appreciate your pointing it out, since that could save other folks the pain of discovering that my technique may not work for all situations.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5146909" width="1" height="1"&gt;</description></item><item><title>re: White Space around the Silverlight 1.1 Root Canvas</title><link>http://blogs.msdn.com/b/gduthie/archive/2007/09/26/white-space-around-the-silverlight-1-1-root-canvas.aspx#5145148</link><pubDate>Wed, 26 Sep 2007 17:44:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5145148</guid><dc:creator>Björn</dc:creator><description>&lt;p&gt;While this might work for your special case, it will most likely break for allmost every other case. Absolute positioned elements are removed from the flow - e.g. the do not affect layout of other elements - and top/left: 0 (no px or other unit needed for 0) requires that the parent does not have position: static (which is the default), otherwise the pos: abs element ends up being positioned at the first grand-(grand-(...))parent element that is positioned - in the default case this will be html, so you will end up stacking all canvases at the top-left of the page.&lt;/p&gt;
&lt;p&gt;The real solution is to eleminate the property that does cause the offset (margin on the element itself or padding on its parent). To easily identify the property, use a tool such as the WebDev Toolbar for IE, Firebug for Firefox or the Inspector in Safari.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5145148" width="1" height="1"&gt;</description></item></channel></rss>