<?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: Easy Vertical Centering with CSS</title>
	<atom:link href="http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/</link>
	<description>Internet Marketing, Website Promotion and Blogging Advice</description>
	<lastBuildDate>Wed, 17 Mar 2010 06:00:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-161895</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Mon, 15 Mar 2010 14:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-161895</guid>
		<description>Hi Semicodin,

It depends on the context you have and where you want it centred exactly. If it was centred in the browser window like above then you could use the same method as above.

If it&#039;s being centred in another div then it depends on how the page is constructed.

You can centre images vertically like this:

http://www.pmob.co.uk/temp/image-overflow3.htm
http://www.pmob.co.uk/temp/celltest2.htm
http://www.pmob.co.uk/temp/vertical-align11.htm
http://www.pmob.co.uk/temp/vertical-align3.htm

I&#039;d probably need to see your page to see which is best.</description>
		<content:encoded><![CDATA[<p>Hi Semicodin,</p>
<p>It depends on the context you have and where you want it centred exactly. If it was centred in the browser window like above then you could use the same method as above.</p>
<p>If it&#8217;s being centred in another div then it depends on how the page is constructed.</p>
<p>You can centre images vertically like this:</p>
<p><a href="http://www.pmob.co.uk/temp/image-overflow3.htm" rel="nofollow">http://www.pmob.co.uk/temp/image-overflow3.htm</a><br />
<a href="http://www.pmob.co.uk/temp/celltest2.htm" rel="nofollow">http://www.pmob.co.uk/temp/celltest2.htm</a><br />
<a href="http://www.pmob.co.uk/temp/vertical-align11.htm" rel="nofollow">http://www.pmob.co.uk/temp/vertical-align11.htm</a><br />
<a href="http://www.pmob.co.uk/temp/vertical-align3.htm" rel="nofollow">http://www.pmob.co.uk/temp/vertical-align3.htm</a></p>
<p>I&#8217;d probably need to see your page to see which is best.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: semicodin</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-161810</link>
		<dc:creator>semicodin</dc:creator>
		<pubDate>Sun, 14 Mar 2010 05:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-161810</guid>
		<description>Paul . . . your tutorials are awesome.  I however need to vertically center an IMAGE.  Right now on the site I just got yesterday Explorer 6 is just crapping on my lovely little vertical alignment CSS (which shows up fine in Firefox what else is new).  Just to completely take a dump on my layout scheme, Explorer also ignores the transparency of the gif I want to center -- just covering all bases (won&#039;t valign and compromises the background image).  

Do you have cross-browser-friendly (non Javascript I beg of you lol) tutorials for images?  Thanks Paul.  You are ubiquitous!

semicodin</description>
		<content:encoded><![CDATA[<p>Paul . . . your tutorials are awesome.  I however need to vertically center an IMAGE.  Right now on the site I just got yesterday Explorer 6 is just crapping on my lovely little vertical alignment CSS (which shows up fine in Firefox what else is new).  Just to completely take a dump on my layout scheme, Explorer also ignores the transparency of the gif I want to center &#8212; just covering all bases (won&#8217;t valign and compromises the background image).  </p>
<p>Do you have cross-browser-friendly (non Javascript I beg of you lol) tutorials for images?  Thanks Paul.  You are ubiquitous!</p>
<p>semicodin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-160440</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Tue, 16 Feb 2010 09:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-160440</guid>
		<description>@Sylwester: Apologies for the above post I think I misunderstood what you were trying to say :)</description>
		<content:encoded><![CDATA[<p>@Sylwester: Apologies for the above post I think I misunderstood what you were trying to say <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-160434</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Tue, 16 Feb 2010 09:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-160434</guid>
		<description>@Sylwester: That would be your code that&#039;s broken and not mine.

Please do no post inane comments without backing them up.

Thank you.</description>
		<content:encoded><![CDATA[<p>@Sylwester: That would be your code that&#8217;s broken and not mine.</p>
<p>Please do no post inane comments without backing them up.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylwester w Górach</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-160427</link>
		<dc:creator>Sylwester w Górach</dc:creator>
		<pubDate>Tue, 16 Feb 2010 07:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-160427</guid>
		<description>well i like this centering and now i found out why mny ppl said that i have bugs on my web site :) i just used old way to do it :P 

Thank you</description>
		<content:encoded><![CDATA[<p>well i like this centering and now i found out why mny ppl said that i have bugs on my web site <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  i just used old way to do it <img src='http://www.search-this.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  </p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-153432</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Sat, 10 Oct 2009 14:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-153432</guid>
		<description>Hi Ian,

Yes if you have a link I&#039;ll take a look. I don&#039;t see why it should not work in a small pop up window (but of course IE is always buggy at the best of times).</description>
		<content:encoded><![CDATA[<p>Hi Ian,</p>
<p>Yes if you have a link I&#8217;ll take a look. I don&#8217;t see why it should not work in a small pop up window (but of course IE is always buggy at the best of times).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-153430</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Sat, 10 Oct 2009 14:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-153430</guid>
		<description>Hi Paul,

I agree you shouldn&#039;t open a new window but many links do. 

I used the vert hoz solution &quot;http://www.pmob.co.uk/pob/hoz-vert-center.htm&quot; and that works fine as a pop up.

I trashed the folders from the example but will remake for you to see.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>I agree you shouldn&#8217;t open a new window but many links do. </p>
<p>I used the vert hoz solution &#8220;http://www.pmob.co.uk/pob/hoz-vert-center.htm&#8221; and that works fine as a pop up.</p>
<p>I trashed the folders from the example but will remake for you to see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-153371</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Fri, 09 Oct 2009 15:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-153371</guid>
		<description>Hi Ian,

You&#039;ll have to show me an example so I can see what&#039;s happening. Post a link if you can

You shouldn&#039;t really be opening new resized windows anyway (if that&#039;s what you were doing) as it should be the users choice and not yours.</description>
		<content:encoded><![CDATA[<p>Hi Ian,</p>
<p>You&#8217;ll have to show me an example so I can see what&#8217;s happening. Post a link if you can</p>
<p>You shouldn&#8217;t really be opening new resized windows anyway (if that&#8217;s what you were doing) as it should be the users choice and not yours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-153353</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Fri, 09 Oct 2009 10:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-153353</guid>
		<description>This is a very nice solution to vertical centering. But... when I add a link to view a site made this way set as blank and IE opens it as a new window and that window is small and the user expands the window it goes all wrong... hoz and ver scroll bar appear and content gets pushed down.

Any ideas how to fix this?</description>
		<content:encoded><![CDATA[<p>This is a very nice solution to vertical centering. But&#8230; when I add a link to view a site made this way set as blank and IE opens it as a new window and that window is small and the user expands the window it goes all wrong&#8230; hoz and ver scroll bar appear and content gets pushed down.</p>
<p>Any ideas how to fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-150323</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Mon, 24 Aug 2009 15:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-150323</guid>
		<description>Hi Jakob,

Thanks for your comments.

There is already an equivalent in css to the deprecated &quot;valign&quot; atttribute (it&#039;s not a tag ;)) and is simply the &quot;vertical-align&quot; property.

It works in exactly the same way as valign and will vertically align the content in a table-cell (or inline elements in a single line).

There is no need to use the deprecated valign attribute when using tables at all.

Don&#039;tconfuse table behaviour with the behaviour of other block elements as valign does not apply to non-table block elements either so in reality there can be no comparisons.

Yes it would be nice to have an easy vertical align property for block elements which is what I think you are asking. there are explorative specs at the w3c about ways to do this.
http://www.css3.info/advanced-layout-module-gets-a-refresh/
http://www.w3.org/TR/2005/WD-css3-layout-20051215/#vertical

It is possible to vertically align block elements now by setting an element to display:table/cell  (which ie8 supports) and then using the vertical align property. (Opera/Firefox and Safari all support this now also).

Re the original article you mention that the solution here is too complicated but the html is actually less code than using a table to do the same thing so I don&#039;t see a problem.:)</description>
		<content:encoded><![CDATA[<p>Hi Jakob,</p>
<p>Thanks for your comments.</p>
<p>There is already an equivalent in css to the deprecated &#8220;valign&#8221; atttribute (it&#8217;s not a tag <img src='http://www.search-this.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) and is simply the &#8220;vertical-align&#8221; property.</p>
<p>It works in exactly the same way as valign and will vertically align the content in a table-cell (or inline elements in a single line).</p>
<p>There is no need to use the deprecated valign attribute when using tables at all.</p>
<p>Don&#8217;tconfuse table behaviour with the behaviour of other block elements as valign does not apply to non-table block elements either so in reality there can be no comparisons.</p>
<p>Yes it would be nice to have an easy vertical align property for block elements which is what I think you are asking. there are explorative specs at the w3c about ways to do this.<br />
<a href="http://www.css3.info/advanced-layout-module-gets-a-refresh/" rel="nofollow">http://www.css3.info/advanced-layout-module-gets-a-refresh/</a><br />
<a href="http://www.w3.org/TR/2005/WD-css3-layout-20051215/#vertical" rel="nofollow">http://www.w3.org/TR/2005/WD-css3-layout-20051215/#vertical</a></p>
<p>It is possible to vertically align block elements now by setting an element to display:table/cell  (which ie8 supports) and then using the vertical align property. (Opera/Firefox and Safari all support this now also).</p>
<p>Re the original article you mention that the solution here is too complicated but the html is actually less code than using a table to do the same thing so I don&#8217;t see a problem.:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakob G</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-150311</link>
		<dc:creator>Jakob G</dc:creator>
		<pubDate>Mon, 24 Aug 2009 09:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-150311</guid>
		<description>Hello Paul. Impressive work but it&#039;s simply to complicated for me. I&#039;ll continue using the valign tag in plain HTML. But do you know if vertical alignment will ever be implemented in CSS? I really don&#039;t understand why the old farts at W3C don&#039;t do something about this. We all want it! So what&#039;s the problem?</description>
		<content:encoded><![CDATA[<p>Hello Paul. Impressive work but it&#8217;s simply to complicated for me. I&#8217;ll continue using the valign tag in plain HTML. But do you know if vertical alignment will ever be implemented in CSS? I really don&#8217;t understand why the old farts at W3C don&#8217;t do something about this. We all want it! So what&#8217;s the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Key</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-2/#comment-147697</link>
		<dc:creator>Tom Key</dc:creator>
		<pubDate>Fri, 10 Jul 2009 09:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-147697</guid>
		<description>Thanx,
you are genial :-)
I needet right this one for new site of my rock band, with using Lightwindow script simultaneously. Only this solution is fully function -  in another case, after quitting Lightwindow box, the centered content jump up, for unknown reason...
Many thanx once again,
TK</description>
		<content:encoded><![CDATA[<p>Thanx,<br />
you are genial <img src='http://www.search-this.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
I needet right this one for new site of my rock band, with using Lightwindow script simultaneously. Only this solution is fully function &#8211;  in another case, after quitting Lightwindow box, the centered content jump up, for unknown reason&#8230;<br />
Many thanx once again,<br />
TK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Greenhough</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-1/#comment-143122</link>
		<dc:creator>Chris Greenhough</dc:creator>
		<pubDate>Sun, 24 May 2009 10:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-143122</guid>
		<description>Hi Paul,

Much obliged for the reply and links. A few more to add to my collection of Vertical Align CSS bookmarks… ;-)

And I&#039;ll know who to call on if I get a tricky CSS projects…

Regards,
Chris G.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Much obliged for the reply and links. A few more to add to my collection of Vertical Align CSS bookmarks… <img src='http://www.search-this.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>And I&#8217;ll know who to call on if I get a tricky CSS projects…</p>
<p>Regards,<br />
Chris G.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul OB</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-1/#comment-142831</link>
		<dc:creator>Paul OB</dc:creator>
		<pubDate>Fri, 22 May 2009 16:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-142831</guid>
		<description>Hi,

The technique is much the same and this is a very very old demo that vertically aligns text content to the middle.

http://www.pmob.co.uk/temp/vertical-align-again.htm

Or an even older demo here:

http://www.pmob.co.uk/temp/vertical-align9.htm

You can also use the inline-block method mentioned in this article.

http://www.search-this.com/2008/08/28/lets-all-get-inline-in-a-block-in-a-block/

Although as you guessed it&#039;s not always straight forward.:)

Hope it&#039;s of some use.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The technique is much the same and this is a very very old demo that vertically aligns text content to the middle.</p>
<p><a href="http://www.pmob.co.uk/temp/vertical-align-again.htm" rel="nofollow">http://www.pmob.co.uk/temp/vertical-align-again.htm</a></p>
<p>Or an even older demo here:</p>
<p><a href="http://www.pmob.co.uk/temp/vertical-align9.htm" rel="nofollow">http://www.pmob.co.uk/temp/vertical-align9.htm</a></p>
<p>You can also use the inline-block method mentioned in this article.</p>
<p><a href="http://www.search-this.com/2008/08/28/lets-all-get-inline-in-a-block-in-a-block/" rel="nofollow">http://www.search-this.com/2008/08/28/lets-all-get-inline-in-a-block-in-a-block/</a></p>
<p>Although as you guessed it&#8217;s not always straight forward.:)</p>
<p>Hope it&#8217;s of some use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Greenhough</title>
		<link>http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/comment-page-1/#comment-142828</link>
		<dc:creator>Chris Greenhough</dc:creator>
		<pubDate>Fri, 22 May 2009 15:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.search-this.com/?p=656#comment-142828</guid>
		<description>Hi Paul,

Wow, thanks for the prompt reply!

Yes, I agree, CSS has the :table property but it&#039;s such a shame that it doesn&#039;t do what it says on the tin… Well, maybe it would, but as per usual along comes IE to spoil the party. Without a doubt I spend as long getting sites to work in IE as I do designing them in the first place (if not longer)…

So, just another quick question for you… All these examples focus on centering the page itself. What if you wanted to vertically centre the content of one element, in the manner of an old-style html table tag? Does your solution require any modification for that?</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Wow, thanks for the prompt reply!</p>
<p>Yes, I agree, CSS has the :table property but it&#8217;s such a shame that it doesn&#8217;t do what it says on the tin… Well, maybe it would, but as per usual along comes IE to spoil the party. Without a doubt I spend as long getting sites to work in IE as I do designing them in the first place (if not longer)…</p>
<p>So, just another quick question for you… All these examples focus on centering the page itself. What if you wanted to vertically centre the content of one element, in the manner of an old-style html table tag? Does your solution require any modification for that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
