<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Vertical Centering with a Floated Shim</title>
	<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/</link>
	<description>where matthew tretter types stuff</description>
	<pubDate>Fri, 25 Jul 2008 02:54:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: caleb</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-520</link>
		<dc:creator>caleb</dc:creator>
		<pubDate>Mon, 02 Jun 2008 01:24:59 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-520</guid>
		<description>It's amazing that it took so much googling to find this solution. Works like a dream.

For an idea that's a year and half old, shouldn't more people have picked up on it?!

Thanks Matthew!</description>
		<content:encoded><![CDATA[<p>It&#039;s amazing that it took so much googling to find this solution. Works like a dream.</p>
<p>For an idea that&#039;s a year and half old, shouldn&#039;t more people have picked up on it?!</p>
<p>Thanks Matthew!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcsdwarken</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-286</link>
		<dc:creator>mcsdwarken</dc:creator>
		<pubDate>Mon, 28 Apr 2008 15:02:41 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-286</guid>
		<description>Thanks a lot, it's the solution I've been searching for months! Simple and brilliant!</description>
		<content:encoded><![CDATA[<p>Thanks a lot, it&#039;s the solution I&#039;ve been searching for months! Simple and brilliant!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jedidiah</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-183</link>
		<dc:creator>Jedidiah</dc:creator>
		<pubDate>Tue, 01 Apr 2008 20:55:43 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-183</guid>
		<description>I get it now, vertical not horizontal.

Sorry having a slow day.</description>
		<content:encoded><![CDATA[<p>I get it now, vertical not horizontal.</p>
<p>Sorry having a slow day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jedidiah</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-182</link>
		<dc:creator>Jedidiah</dc:creator>
		<pubDate>Tue, 01 Apr 2008 20:53:45 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-182</guid>
		<description>Hi Matthew, sorry my domain has changed since I posted the screen-shot and the link is broken, I've uploaded it again here http://jedidiah.eu/shiv.jpg

This is what I see in Safari 3 on Leopard, unless I'm missing the point I'm assuming that it is not rendering correctly as the box is aligned left not centred.</description>
		<content:encoded><![CDATA[<p>Hi Matthew, sorry my domain has changed since I posted the screen-shot and the link is broken, I&#039;ve uploaded it again here <a href="http://jedidiah.eu/shiv.jpg" rel="nofollow">http://jedidiah.eu/shiv.jpg</a></p>
<p>This is what I see in Safari 3 on Leopard, unless I&#039;m missing the point I&#039;m assuming that it is not rendering correctly as the box is aligned left not centred.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emo Saloy</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-125</link>
		<dc:creator>Emo Saloy</dc:creator>
		<pubDate>Fri, 30 Nov 2007 21:10:13 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-125</guid>
		<description>	&lt;p&gt;Thanks and greeting from Uzbekistan. This &#8220;hack&#8221; was very helpful&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Thanks and greeting from Uzbekistan. This &#034;hack&#034; was very helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay kumar</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-107</link>
		<dc:creator>vijay kumar</dc:creator>
		<pubDate>Wed, 12 Sep 2007 11:46:51 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-107</guid>
		<description>	&lt;p&gt;Enjoy! vijay web designer provide a div based vertically and horizontally center code but only for outer not a inner.&lt;/p&gt;

	&lt;p&gt;Vertically and Horizontally Centering a DIV&lt;/p&gt;

	&lt;p&gt;body {
	font-size: 12px;
	font-family: arial, helvetica, sans-serif;
	color: #333;&lt;br /&gt;
}
#wrap{
	width:778px;
	height:auto;&lt;br /&gt;
}&lt;br /&gt;
p {
	margin: 1em;&lt;br /&gt;
}&lt;br /&gt;
.comments {
	background-color: #e3e3e3;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	padding: 2px;&lt;br /&gt;
}&lt;/p&gt;

	&lt;p&gt;#mydiv {
	position:absolute;
	top: 50%;
	left: 50%;
	width:30em;
	height:18em;
	margin-top: -9em; /*set to a negative number 1/2 of your height*/
	margin-left: -15em; /*set to a negative number 1/2 of your width*/
	border: 1px solid #ccc;
	background-color: #f3f3f3;&lt;br /&gt;
}&lt;/p&gt;

	&lt;p&gt;	This is a vertically and horizontally centered  tag. Try resizing your browser.
	
	
	http://www.vijaycreations.com/&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Enjoy! vijay web designer provide a div based vertically and horizontally center code but only for outer not a inner.</p>
<p>Vertically and Horizontally Centering a DIV</p>
<p>body {<br />
	font-size: 12px;<br />
	font-family: arial, helvetica, sans-serif;<br />
	color: #333;<br />
}<br />
#wrap{<br />
	width:778px;<br />
	height:auto;<br />
}<br />
p {<br />
	margin: 1em;<br />
}<br />
.comments {<br />
	background-color: #e3e3e3;<br />
	border-top: 1px solid #ccc;<br />
	border-bottom: 1px solid #ccc;<br />
	padding: 2px;<br />
}</p>
<p>#mydiv {<br />
	position:absolute;<br />
	top: 50%;<br />
	left: 50%;<br />
	width:30em;<br />
	height:18em;<br />
	margin-top: -9em; /*set to a negative number 1/2 of your height*/<br />
	margin-left: -15em; /*set to a negative number 1/2 of your width*/<br />
	border: 1px solid #ccc;<br />
	background-color: #f3f3f3;<br />
}</p>
<p>	This is a vertically and horizontally centered  tag. Try resizing your browser.</p>
<p>	<a href="http://www.vijaycreations.com/" rel="nofollow">http://www.vijaycreations.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarav</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-103</link>
		<dc:creator>sarav</dc:creator>
		<pubDate>Sat, 01 Sep 2007 18:02:59 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-103</guid>
		<description>	&lt;p&gt;Good one&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Good one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: insankaynakları ilanı</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-102</link>
		<dc:creator>insankaynakları ilanı</dc:creator>
		<pubDate>Sat, 18 Aug 2007 07:29:27 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-102</guid>
		<description>	&lt;p&gt;thanks&#8230;&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-99</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Wed, 15 Aug 2007 02:35:16 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-99</guid>
		<description>&lt;p&gt;@Jedidiah:&lt;br /&gt;
Sorry, what's your screenshot showing?
&lt;/p&gt;

	&lt;p&gt;@Aleksandar:&lt;br /&gt;
Ah yeah.  The dynamic properties trick is a pretty neat way of getting the job done.  It's &lt;a href="http://www.google.com/search?q=vertical+center+expression+ie"&gt;been around for a while&lt;/a&gt;, but it does have a few drawbacks.  Even though it's in a &lt;span class="caps"&gt;CSS&lt;/span&gt; document, it &lt;em&gt;is&lt;/em&gt; JavaScript, so it's susceptible to the usual JavaScript criticisms.  Also, it's invalid &lt;span class="caps"&gt;CSS&lt;/span&gt;.  However, when applied selectively to target the flaws of a legacy browser (like you have), the technique can't be beat.  Thanks!&lt;/p&gt;

	&lt;p&gt;@Neil:&lt;br /&gt;
Yeah, the example just shows how to &lt;em&gt;vertically&lt;/em&gt; center a block.  The same old tricks apply for centering it horizontally.&lt;/p&gt;

	&lt;p&gt;@Mike:&lt;br /&gt;
Unfortunately, I don't think so.  As I mentioned above, Aleksandar's method is actually using JavaScript.  The expression is reevaluated every time the window's resize event fires, which is probably the cause of the flicker.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>@Jedidiah:<br />
Sorry, what&#039;s your screenshot showing?
</p>
<p>@Aleksandar:<br />
Ah yeah.  The dynamic properties trick is a pretty neat way of getting the job done.  It&#039;s <a href="http://www.google.com/search?q=vertical+center+expression+ie">been around for a while</a>, but it does have a few drawbacks.  Even though it&#039;s in a <span class="caps">CSS</span> document, it <em>is</em> JavaScript, so it&#039;s susceptible to the usual JavaScript criticisms.  Also, it&#039;s invalid <span class="caps">CSS</span>.  However, when applied selectively to target the flaws of a legacy browser (like you have), the technique can&#039;t be beat.  Thanks!</p>
<p>@Neil:<br />
Yeah, the example just shows how to <em>vertically</em> center a block.  The same old tricks apply for centering it horizontally.</p>
<p>@Mike:<br />
Unfortunately, I don&#039;t think so.  As I mentioned above, Aleksandar&#039;s method is actually using JavaScript.  The expression is reevaluated every time the window&#039;s resize event fires, which is probably the cause of the flicker.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Edwards</title>
		<link>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-98</link>
		<dc:creator>Mike Edwards</dc:creator>
		<pubDate>Tue, 14 Aug 2007 13:47:30 +0000</pubDate>
		<guid>http://exanimo.com/css/vertical-centering-with-a-floated-shim/#comment-98</guid>
		<description>	&lt;p&gt;the example at http://www.aplus.co.yu/lab/rdc/ is great except it causes elements with &lt;span class="caps"&gt;CSS&lt;/span&gt; background images to flicker white on resize in ie6. Any fixes?&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>the example at <a href="http://www.aplus.co.yu/lab/rdc/" rel="nofollow">http://www.aplus.co.yu/lab/rdc/</a> is great except it causes elements with <span class="caps">CSS</span> background images to flicker white on resize in ie6. Any fixes?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
