<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sore Eyes &#187; css</title>
	<atom:link href="http://soreeyes.org/archive/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://soreeyes.org</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 23:26:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS unsized images</title>
		<link>http://soreeyes.org/archive/2011/07/26/css-unsized-images/</link>
		<comments>http://soreeyes.org/archive/2011/07/26/css-unsized-images/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 21:56:47 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://soreeyes.org/archive/2011/07/26/css-unsized-images/</guid>
		<description><![CDATA[Nicked from 37signals: Have you noticed that software feels cheap when UI elements move around on the screen without notice? Web applications are particularly vulnerable to this problem. Browsers give image elements a default size if they do not have explicit width and height attributes. Once these images have loaded, they expand or contract to [...]]]></description>
			<content:encoded><![CDATA[<p><a title="CSS tip: Spot unsized images during development - (37signals)" href="http://37signals.com/svn/posts/2979-css-tip-spot-unsized-images-during-development">Nicked from 37signals</a>:</p>
<blockquote>
<p>Have you noticed that software feels cheap when UI elements move around on the screen without notice? Web applications are particularly vulnerable to this problem. Browsers give image elements a default size if they do not have explicit width and height attributes. Once these images have loaded, they expand or contract to their full size, causing all other elements on the page to reflow in response.</p>
<p>We try to avoid this in our applications, but it's easy for an image tag to slip through the cracks. That single tag might be repeated many times in a loop, each instance causing the on-screen furniture to shift around in an unseemly way.</p>
<p>Here's a tip for catching unsized images during development. Add this CSS rule somewhere in your stylesheet:</p>
<pre style="color: MidnightBlue;font-size: 80%;">
img:not([width]):not([height]) {
border: 2px solid red !important;
}
</pre>
<p>Then any images without width and height attributes will be drawn with a red border so they're easy to spot.</p>
</blockquote>
<p>Neat.</p>
]]></content:encoded>
			<wfw:commentRss>http://soreeyes.org/archive/2011/07/26/css-unsized-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Solar System according to Microsoft</title>
		<link>http://soreeyes.org/archive/2010/07/02/the-solar-system-according-to-microsoft/</link>
		<comments>http://soreeyes.org/archive/2010/07/02/the-solar-system-according-to-microsoft/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 21:06:39 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://soreeyes.org/archive/2010/07/02/the-solar-system-according-to-microsoft/</guid>
		<description><![CDATA[The solar system as seen in Internet Explorer. [Via kottke.org]]]></description>
			<content:encoded><![CDATA[<p>The solar system <a title="feltron - IE rendering of a handsome CSS3 solar system." href="http://feltron.tumblr.com/post/745831161/ie-rendering-of-a-handsome-css3-solar-system">as seen in Internet Explorer</a>.</p>
<p>
<span class="via">[Via <a href="http://kottke.org/10/06/css3-solar-system">kottke.org</a>]</span></p>
]]></content:encoded>
			<wfw:commentRss>http://soreeyes.org/archive/2010/07/02/the-solar-system-according-to-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selected text</title>
		<link>http://soreeyes.org/archive/2010/02/27/selected-text/</link>
		<comments>http://soreeyes.org/archive/2010/02/27/selected-text/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 23:14:21 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://soreeyes.org/archive/2010/02/27/selected-text/</guid>
		<description><![CDATA[Zeldman pointed out a nice CSS3 feature. To set the colour of selected text, try adding this to your style sheet: ::-moz-selection { color: #004080; background: #fffdd7; } ::selection { color: #004080; background: #fffdd7; } To my knowledge, this feature works in Mozilla-based browsers, Safari and Opera.1 It doesn't work in Internet Explorer, but it [...]]]></description>
			<content:encoded><![CDATA[<p>Zeldman pointed out a <a title="Recent Tweets - Jeffrey Zeldman Presents The Daily Report" href="http://www.zeldman.com/2010/02/24/recent-tweets/">nice CSS3 feature</a>. To set the colour of selected text, try adding this to your style sheet:</p>
<blockquote>
<pre>
::-moz-selection { color: #004080; background: #fffdd7; }
::selection { color: #004080; background: #fffdd7; }
</pre>
</blockquote>
<p>To my knowledge, this feature works in Mozilla-based browsers, Safari and Opera.<sup><a href="http://soreeyes.org/archive/2010/02/27/selected-text/#footnote_0_5467" id="identifier_0_5467" class="footnote-link footnote-identifier-link" title="I wouldn&amp;#8217;t know about Chrome. Google &amp;#8211; like quite a few suppliers of Mac OS X software nowadays &amp;#8211; don&amp;#8217;t bother producing a version of their browser for PowerPC-based Macs. However, I&amp;#8217;d be very surprised if this feature isn&amp;#8217;t supported in Chrome, given that it uses the same Webkit rendering engine as Safari.">1</a></sup> It doesn't work in Internet Explorer, but it doesn't break anything either.</p>
<ol class="footnotes"><li id="footnote_0_5467" class="footnote">I wouldn't know about Chrome. Google &#8211; like quite a few suppliers of Mac OS X software nowadays &#8211; don't bother producing a version of their browser for PowerPC-based Macs. However, I'd be very surprised if this feature isn't supported in Chrome, given that it uses the same Webkit rendering engine as Safari.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://soreeyes.org/archive/2010/02/27/selected-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

