<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Simple Vertical Align Plugin for jQuery</title>
	<atom:link href="http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/</link>
	<description>Websites designed and optimized for results.</description>
	<lastBuildDate>Thu, 09 Feb 2012 15:48:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Lunalady22</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10496</link>
		<dc:creator>Lunalady22</dc:creator>
		<pubDate>Sun, 05 Feb 2012 02:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10496</guid>
		<description>ignore me! it works!  THANK YOU!!!!!</description>
		<content:encoded><![CDATA[<p>ignore me! it works!  THANK YOU!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lunalady22</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10495</link>
		<dc:creator>Lunalady22</dc:creator>
		<pubDate>Sun, 05 Feb 2012 02:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10495</guid>
		<description>#div text-align: center;</description>
		<content:encoded><![CDATA[<p>#div text-align: center;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lunalady22</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10494</link>
		<dc:creator>Lunalady22</dc:creator>
		<pubDate>Sun, 05 Feb 2012 01:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10494</guid>
		<description>Hi there - this code is awesome, however it has stopped my image being horizontally center aligned. Previously the image was center aligned by using CSS #div  text-align:center  but after adding in the jquery it is left aligned - thanks in advance for any help! </description>
		<content:encoded><![CDATA[<p>Hi there &#8211; this code is awesome, however it has stopped my image being horizontally center aligned. Previously the image was center aligned by using CSS #div  text-align:center  but after adding in the jquery it is left aligned &#8211; thanks in advance for any help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10492</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Thu, 02 Feb 2012 01:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10492</guid>
		<description>Oh right, before I forget :-) for this specific website the background continued inside the website. Therefor I needed the background to be replaced as well, which explains the line changing the background-position property for the body!</description>
		<content:encoded><![CDATA[<p>Oh right, before I forget <img src='http://www.seodenver.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  for this specific website the background continued inside the website. Therefor I needed the background to be replaced as well, which explains the line changing the background-position property for the body!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10491</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Thu, 02 Feb 2012 01:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10491</guid>
		<description>Hi,

mine was giving me no data back for the element I needed the hight from (the outer container of my website), tho, I new what the height was and I changed it to this script:

(function ($) {{
            var mh = Math.ceil((ph-ah) / 2);
        
            $(this).css(&#039;margin-top&#039;, mh);
            $(&#039;body&#039;).css(&#039;background-position&#039;, &#039;0px &#039;+mh+&#039;px&#039;);
        
    );
};
})(jQuery);

In the footer of my webpage I used this script:

    $(document).ready(function() 
            $(&#039;#wrapper&#039;).vAlign();
        );
    );

My website is being vertically centered and is being replaced if you decide to change the size of your browser screen! In my case the &#039;660&#039; indicates a 660px high website. I added another check (if ph &gt; ah) because otherwise there is the possibility a negative margin is added and thus some text will apear outsite its container.

Hope this might be of any use. I&#039;ve got absolutely no clue why $(this).height() returned 0 pixels, so there&#039;s a good chance it works for anyone else when using $(this).height() instead of a fixed number!

Joshua</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>mine was giving me no data back for the element I needed the hight from (the outer container of my website), tho, I new what the height was and I changed it to this script:</p>
<p>(function ($) {{<br />
            var mh = Math.ceil((ph-ah) / 2);<br />
       <br />
            $(this).css(&#8216;margin-top&#8217;, mh);<br />
            $(&#8216;body&#8217;).css(&#8216;background-position&#8217;, &#8217;0px &#8216;+mh+&#8217;px&#8217;);<br />
        <br />
    );<br />
};<br />
})(jQuery);</p>
<p>In the footer of my webpage I used this script:</p>
<p>    $(document).ready(function() <br />
            $(&#8216;#wrapper&#8217;).vAlign();<br />
        );<br />
    );</p>
<p>My website is being vertically centered and is being replaced if you decide to change the size of your browser screen! In my case the &#8217;660&#8242; indicates a 660px high website. I added another check (if ph &gt; ah) because otherwise there is the possibility a negative margin is added and thus some text will apear outsite its container.</p>
<p>Hope this might be of any use. I&#8217;ve got absolutely no clue why $(this).height() returned 0 pixels, so there&#8217;s a good chance it works for anyone else when using $(this).height() instead of a fixed number!</p>
<p>Joshua</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zack Katz</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10471</link>
		<dc:creator>Zack Katz</dc:creator>
		<pubDate>Mon, 23 Jan 2012 16:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10471</guid>
		<description>Check out this: http://www.w3schools.com/jquery/jquery_intro.asp</description>
		<content:encoded><![CDATA[<p>Check out this: <a href="http://www.w3schools.com/jquery/jquery_intro.asp">http://www.w3schools.com/jquery/jquery_intro.asp</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim5358</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10464</link>
		<dc:creator>Jim5358</dc:creator>
		<pubDate>Sat, 21 Jan 2012 05:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10464</guid>
		<description>Hi! VERY helpful post, thank you! I have to plead ignorance... I&#039;m not sure where to paste in the code, or how to insert the jQuery in Dreamweaver...!! Sorry to be a pain!</description>
		<content:encoded><![CDATA[<p>Hi! VERY helpful post, thank you! I have to plead ignorance&#8230; I&#8217;m not sure where to paste in the code, or how to insert the jQuery in Dreamweaver&#8230;!! Sorry to be a pain!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10461</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 18 Jan 2012 15:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10461</guid>
		<description>Is better with outerHeight().
This include the padding.</description>
		<content:encoded><![CDATA[<p>Is better with outerHeight().<br />
This include the padding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Quinn</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10406</link>
		<dc:creator>Sean Quinn</dc:creator>
		<pubDate>Thu, 29 Dec 2011 23:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10406</guid>
		<description>I have plugin-ified this on my GitHub: https://github.com/esqew/jQueryVerticalCenter/

You can now utilize it as you would any jQuery plugin!</description>
		<content:encoded><![CDATA[<p>I have plugin-ified this on my GitHub: https://github.com/esqew/jQueryVerticalCenter/</p>
<p>You can now utilize it as you would any jQuery plugin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A1</title>
		<link>http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/#comment-10363</link>
		<dc:creator>A1</dc:creator>
		<pubDate>Wed, 30 Nov 2011 12:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://katzwebdesign.wordpress.com/?p=308#comment-10363</guid>
		<description>its ok</description>
		<content:encoded><![CDATA[<p>its ok</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Object Caching 0/0 objects using disk: basic

Served from: www.seodenver.com @ 2012-02-09 17:53:43 -->
