<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1048287" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1048287</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Not entirely sure if it is a</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/center-overlay-even-if-scrolled-down#comment-1258046</link>
    <description> &lt;p&gt;Not entirely sure if it is a good idea to do what you are wanting as your users may get confused or even frustrated as to why they can&#039;t scroll. Also, I&#039;m not sure if you mean an overlay like you see in the lightbox galleries or if you mean a div over your entire page.&lt;/p&gt;
&lt;p&gt;If you mean the latter, you can achive the same effect with some jQuery:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br /&gt;$(document).mousemove(function (e) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&amp;quot;#page-container&amp;quot;).css(&amp;quot;width&amp;quot;,$(window).width());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&amp;quot;#page-container&amp;quot;).css(&amp;quot;height&amp;quot;,$(window).height());&lt;br /&gt;&amp;nbsp; });&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Just set #page-container to whatever your div name is. What this will do is constantly poll the window&#039;s width and height as the user moves around your site. Not ideal solution but it does work.&lt;/p&gt;
&lt;p&gt;Do you have an example of the effect you are trying to achive?&lt;/p&gt;
 </description>
     <pubDate>Sun, 28 Nov 2010 21:50:51 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1258046 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
