<?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: Creating a modern modal with CSS</title>
	<atom:link href="http://www.paulrhayes.com/2011-03/css-modal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulrhayes.com/2011-03/css-modal/</link>
	<description>The web musings and experiments of.</description>
	<lastBuildDate>Sat, 15 Jun 2013 13:23:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stephan</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-2168</link>
		<dc:creator>Stephan</dc:creator>
		<pubDate>Sat, 15 Jun 2013 13:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-2168</guid>
		<description><![CDATA[Hi,
have you tried this in IE10?
Any link element on your site is not longer recognized when you use the code above.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
have you tried this in IE10?<br />
Any link element on your site is not longer recognized when you use the code above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Calkins</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-1520</link>
		<dc:creator>Michael Calkins</dc:creator>
		<pubDate>Fri, 09 Mar 2012 03:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-1520</guid>
		<description><![CDATA[You solved a problem I was having with my own modal in this ty!

Keep using the newest tags that&#039;s the way the future is going I love it!]]></description>
		<content:encoded><![CDATA[<p>You solved a problem I was having with my own modal in this ty!</p>
<p>Keep using the newest tags that’s the way the future is going I love it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joa</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-1503</link>
		<dc:creator>joa</dc:creator>
		<pubDate>Tue, 21 Feb 2012 17:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-1503</guid>
		<description><![CDATA[Great work!

What is best way to open a modal with javascript? Adding a class with 
opacity: 1;pointer-events: auto;
opens the modal, but without the bounce effect...]]></description>
		<content:encoded><![CDATA[<p>Great work!</p>
<p>What is best way to open a modal with javascript? Adding a class with<br />
opacity: 1;pointer-events: auto;<br />
opens the modal, but without the bounce effect…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: math-loust</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-1463</link>
		<dc:creator>math-loust</dc:creator>
		<pubDate>Mon, 09 Jan 2012 20:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-1463</guid>
		<description><![CDATA[love this idea
thanks this is awesome]]></description>
		<content:encoded><![CDATA[<p>love this idea<br />
thanks this is awesome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dalgard</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-1386</link>
		<dc:creator>dalgard</dc:creator>
		<pubDate>Wed, 14 Sep 2011 12:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-1386</guid>
		<description><![CDATA[Overlay without extra markup...

I&#039;ve also been looking for a way to do a semi-opaque overlay behind the modal using generated content (:before pseudo-element).

The trouble seems to be putting the modal in front; when using z-index on the modal the overlay (which must have a negative z-index) jumps in front for some reason, and without z-index on the modal it goes other elements in the page. One could put the entire page minus the modal in a container with a z-index of -2, but this is hardly a pretty solution.

Anyway, another way of doing a semi-opaque background would be adding an extreme box-shadow like this:

0 0 0 100000px rgba(0,0,0,0.3)

As much as this huge pixel value hurts my eyes, my browser doesn&#039;t seem to care at all, not using any more resources resizing or doing whatever with this behemoth in the stylesheet.

It makes me wonder: How bad are monster values in CSS with regards to performance? How wrong is it to expect the user&#039;s screen to be less than 141,421 pixels wide (supposed the modal has a border-radius)...? ;)]]></description>
		<content:encoded><![CDATA[<p>Overlay without extra markup…</p>
<p>I’ve also been looking for a way to do a semi-opaque overlay behind the modal using generated content (:before pseudo-element).</p>
<p>The trouble seems to be putting the modal in front; when using z-index on the modal the overlay (which must have a negative z-index) jumps in front for some reason, and without z-index on the modal it goes other elements in the page. One could put the entire page minus the modal in a container with a z-index of –2, but this is hardly a pretty solution.</p>
<p>Anyway, another way of doing a semi-opaque background would be adding an extreme box-shadow like this:</p>
<p>0 0 0 100000px rgba(0,0,0,0.3)</p>
<p>As much as this huge pixel value hurts my eyes, my browser doesn’t seem to care at all, not using any more resources resizing or doing whatever with this behemoth in the stylesheet.</p>
<p>It makes me wonder: How bad are monster values in CSS with regards to performance? How wrong is it to expect the user’s screen to be less than 141,421 pixels wide (supposed the modal has a border-radius)…? <img src='http://www.paulrhayes.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: css modal box</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-1336</link>
		<dc:creator>css modal box</dc:creator>
		<pubDate>Mon, 20 Jun 2011 14:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-1336</guid>
		<description><![CDATA[This is super cool!!]]></description>
		<content:encoded><![CDATA[<p>This is super cool!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Owen</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-1079</link>
		<dc:creator>Dan Owen</dc:creator>
		<pubDate>Wed, 13 Apr 2011 15:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-1079</guid>
		<description><![CDATA[CSS3 never fails to amaze. Thank you so much for making it all so accessible. Pity some people are using the shortcomings of IE as an excuse not to take advantage of the rich offerings of CSS3.

ps  Love last.fm]]></description>
		<content:encoded><![CDATA[<p>CSS3 never fails to amaze. Thank you so much for making it all so accessible. Pity some people are using the shortcomings of IE as an excuse not to take advantage of the rich offerings of CSS3.</p>
<p>ps  Love last.fm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ca9ine</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-891</link>
		<dc:creator>Ca9ine</dc:creator>
		<pubDate>Wed, 30 Mar 2011 17:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-891</guid>
		<description><![CDATA[This = awesome.
Thank heavens for CSS innovators like yourself!

I was checking out some modal scripts, and thought to myself that this should be done with CSS3 really; I seached, and of course here it is!

Hat-tip to you Mr. Hayes.]]></description>
		<content:encoded><![CDATA[<p>This = awesome.<br />
Thank heavens for CSS innovators like yourself!</p>
<p>I was checking out some modal scripts, and thought to myself that this should be done with CSS3 really; I seached, and of course here it is!</p>
<p>Hat-tip to you Mr. Hayes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: via</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-890</link>
		<dc:creator>via</dc:creator>
		<pubDate>Wed, 30 Mar 2011 16:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-890</guid>
		<description><![CDATA[nice work dude. simple and beautiful]]></description>
		<content:encoded><![CDATA[<p>nice work dude. simple and beautiful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fasal Salam</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-805</link>
		<dc:creator>Fasal Salam</dc:creator>
		<pubDate>Thu, 24 Mar 2011 05:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-805</guid>
		<description><![CDATA[Awesome man.
This is a great experiment thanks!]]></description>
		<content:encoded><![CDATA[<p>Awesome man.<br />
This is a great experiment thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian P</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-795</link>
		<dc:creator>Ian P</dc:creator>
		<pubDate>Wed, 23 Mar 2011 09:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-795</guid>
		<description><![CDATA[A great demo, thanks. After years of such static CSS, I find this :target stuff deceptively tricky and your simple guide is appreciated. Nice one.]]></description>
		<content:encoded><![CDATA[<p>A great demo, thanks. After years of such static CSS, I find this :target stuff deceptively tricky and your simple guide is appreciated. Nice one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raju</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-783</link>
		<dc:creator>Raju</dc:creator>
		<pubDate>Tue, 22 Mar 2011 15:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-783</guid>
		<description><![CDATA[Awesome...but there is a small problem with Chrome 11 Beta.]]></description>
		<content:encoded><![CDATA[<p>Awesome…but there is a small problem with Chrome 11 Beta.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sinan Yasar</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-781</link>
		<dc:creator>Sinan Yasar</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-781</guid>
		<description><![CDATA[Great demo, thanks! Hardware graphics will change the look of web very soon i believe. (At least for modern browser users)]]></description>
		<content:encoded><![CDATA[<p>Great demo, thanks! Hardware graphics will change the look of web very soon i believe. (At least for modern browser users)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin Vogel</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-780</link>
		<dc:creator>Dustin Vogel</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-780</guid>
		<description><![CDATA[@Cristy:  It&#039;s works very smooth in Safari...  Looks great and @Jake, when you press back you get in the state before. Works perfectly.]]></description>
		<content:encoded><![CDATA[<p>@Cristy:  It’s works very smooth in Safari…  Looks great and @Jake, when you press back you get in the state before. Works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristy</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-779</link>
		<dc:creator>Cristy</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-779</guid>
		<description><![CDATA[Looks good after the animation is completed, but when animating it&#039;s very jaggy and doesn&#039;t look good...]]></description>
		<content:encoded><![CDATA[<p>Looks good after the animation is completed, but when animating it’s very jaggy and doesn’t look good…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Mannino</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-778</link>
		<dc:creator>Tim Mannino</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-778</guid>
		<description><![CDATA[I agree with Chris Coyler. This is a great experiment but you should certainly not discard js altogether in favor of a pure CSS solution. JS/jQuery+CSS3 (throw HTML5 in there too) are a match made in heaven and could stand up against Flash anyday.]]></description>
		<content:encoded><![CDATA[<p>I agree with Chris Coyler. This is a great experiment but you should certainly not discard js altogether in favor of a pure CSS solution. JS/jQuery+CSS3 (throw HTML5 in there too) are a match made in heaven and could stand up against Flash anyday.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-777</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-777</guid>
		<description><![CDATA[Awesome! Until you press back :-(]]></description>
		<content:encoded><![CDATA[<p>Awesome! Until you press back <img src='http://www.paulrhayes.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohdhazwan</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-776</link>
		<dc:creator>mohdhazwan</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-776</guid>
		<description><![CDATA[awesome man! seriously awesome.]]></description>
		<content:encoded><![CDATA[<p>awesome man! seriously awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Dust</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-775</link>
		<dc:creator>Andy Dust</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-775</guid>
		<description><![CDATA[Very neat, I experimented with the same technique awhile ago for a pure css lightwindow type photo gallery. 

But as others have mentioned, the way :target/fragments works with browser history (and back/forward buttons) makes this solution untenable.

Andy.]]></description>
		<content:encoded><![CDATA[<p>Very neat, I experimented with the same technique awhile ago for a pure css lightwindow type photo gallery. </p>
<p>But as others have mentioned, the way :target/fragments works with browser history (and back/forward buttons) makes this solution untenable.</p>
<p>Andy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Leggett</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-774</link>
		<dc:creator>David Leggett</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-774</guid>
		<description><![CDATA[This is wonderful, very well done!

Like Nicolas Gallagher noted, I&#039;d say the major drawback right now is the back button reopening the modal.]]></description>
		<content:encoded><![CDATA[<p>This is wonderful, very well done!</p>
<p>Like Nicolas Gallagher noted, I’d say the major drawback right now is the back button reopening the modal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-728</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 18 Mar 2011 22:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-728</guid>
		<description><![CDATA[So sad, so many nifty CSS only solutions tutorials around the web these days. Until there is better IE support, I just don&#039;t have time to check them all out as much as I&#039;d like to. 

Thanks for the post. Simple solution. wish it could be standard.]]></description>
		<content:encoded><![CDATA[<p>So sad, so many nifty CSS only solutions tutorials around the web these days. Until there is better IE support, I just don’t have time to check them all out as much as I’d like to. </p>
<p>Thanks for the post. Simple solution. wish it could be standard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Gallagher</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-724</link>
		<dc:creator>Nicolas Gallagher</dc:creator>
		<pubDate>Fri, 18 Mar 2011 15:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-724</guid>
		<description><![CDATA[This is a cool experiment. One other caveat I didn&#039;t see mentioned is how clicking the back button after closing a modal re-triggers the appearance of the modals.]]></description>
		<content:encoded><![CDATA[<p>This is a cool experiment. One other caveat I didn’t see mentioned is how clicking the back button after closing a modal re-triggers the appearance of the modals.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milos</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-723</link>
		<dc:creator>Milos</dc:creator>
		<pubDate>Fri, 18 Mar 2011 14:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-723</guid>
		<description><![CDATA[Really impressive, Paul. Probably going to recreate this over the weekend.

Keep up the good work.]]></description>
		<content:encoded><![CDATA[<p>Really impressive, Paul. Probably going to recreate this over the weekend.</p>
<p>Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Divya Manian</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-716</link>
		<dc:creator>Divya Manian</dc:creator>
		<pubDate>Fri, 18 Mar 2011 03:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-716</guid>
		<description><![CDATA[A note that pointer-events property is not supported yet in HTML for Opera, however, &lt;a href=&quot;http://www.opera.com/docs/specs/presto28/svg/cssproperties/&quot; rel=&quot;nofollow&quot;&gt;it does work in SVG&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>A note that pointer-events property is not supported yet in HTML for Opera, however, <a href="http://www.opera.com/docs/specs/presto28/svg/cssproperties/" rel="nofollow">it does work in SVG</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Coyier</title>
		<link>http://www.paulrhayes.com/2011-03/css-modal/comment-page-1/#comment-715</link>
		<dc:creator>Chris Coyier</dc:creator>
		<pubDate>Fri, 18 Mar 2011 01:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulrhayes.com/?p=139#comment-715</guid>
		<description><![CDATA[Love this, great work. 

For anybody that looks at this and scoffs at the limited browser support, consider some slight alterations. Use JavaScript for the triggering it open and closed (instead of :target and pointer-events). Then you are still leveraging CSS for the design and funzies, but get way deeper browser support.]]></description>
		<content:encoded><![CDATA[<p>Love this, great work. </p>
<p>For anybody that looks at this and scoffs at the limited browser support, consider some slight alterations. Use JavaScript for the triggering it open and closed (instead of :target and pointer-events). Then you are still leveraging CSS for the design and funzies, but get way deeper browser support.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.775 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-06-19 19:48:46 -->
