<?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>Mitch Canter is [studionashvegas] &#187; CSS</title>
	<atom:link href="http://www.studionashvegas.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.studionashvegas.com</link>
	<description>&#124; Nashville&#039;s Best WordPress Design, Web Development, and Marketing</description>
	<lastBuildDate>Sun, 20 Jun 2010 21:04:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Tired of Refreshing Your CSS Everytime You Make A Change?</title>
		<link>http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/</link>
		<comments>http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/#comments</comments>
		<pubDate>Tue, 05 May 2009 01:47:16 +0000</pubDate>
		<dc:creator>studionashvegas</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.studionashvegas.com/2009/05/04/tired-of-refreshing-your-css-everytime-you-make-a-change/</guid>
		<description><![CDATA[So am I.&#160; I&#160; make changes a lot live on the server (using the Web Dev Toolbar), and I have to hard-refresh every time I make a change.&#160; Doesn’t sound like a big deal, but it cuts down on valuable time that could be done… well, not refreshing a page.&#160; There is a way; versioning [...]]]></description>
			<content:encoded><![CDATA[<p>So am I.&#160; I&#160; make changes a lot live on the server (using the Web Dev Toolbar), and I have to hard-refresh every time I make a change.&#160; Doesn’t sound like a big deal, but it cuts down on valuable time that could be done… well, not refreshing a page.&#160; There is a way; versioning your CSS file.&#160; The upside: it makes changes go live automatically without having to clear the cache.&#160; The downside: it’s difficult to do, because the correct way to do it is by adding v=XXX manually every time you make changes.</p>
<p><strong>Unless…</strong> you can find a way to do it automatically.&#160; And <a href="http://markjaquith.wordpress.com/2009/05/04/force-css-changes-to-go-live-immediately/">Mark Jaquith</a> has done just that.</p>
<p><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php bloginfo('template_url'); ?&gt;/style.css?v=&lt;?php echo filemtime(TEMPLATEPATH . '/style.css'); ?&gt;&quot; type=&quot;text/css&quot; media=&quot;screen, projection&quot; /&gt;</code></p>
<p>So what does the ‘filemtime’ function do?&#160; From the PHP website:</p>
<blockquote><p>This function returns the time when the data blocks of a file were being written to, that is, the time when the content of the file was changed.</p>
</blockquote>
<p>So everytime you change the file, the new change time gets parsed in using PHP and you’re able to have a new version every time.</p>
<p>Thanks to Mark for this great (and really clever) tip!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/&amp;title=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/&amp;title=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/&amp;t=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F&amp;link=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/&amp;title=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/&amp;title=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.studionashvegas.com%2Ftutorial%2Ftired-of-refreshing-your-css-everytime-you-make-a-change%2F&amp;t=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F" rel="nofollow" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Tired+of+Refreshing+Your+CSS+Everytime+You+Make+A+Change%3F+-+http://b2l.me/5jkpt&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.studionashvegas.com%2Ftutorial%2Ftired-of-refreshing-your-css-everytime-you-make-a-change%2F&amp;layout=standard&amp;show-faces=true&amp;width=600&amp;action=recommend&amp;font=verdana&amp;colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:600px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Image Replacement Using CSS</title>
		<link>http://www.studionashvegas.com/tutorial/image-replacement-using-css/</link>
		<comments>http://www.studionashvegas.com/tutorial/image-replacement-using-css/#comments</comments>
		<pubDate>Sun, 03 May 2009 17:08:56 +0000</pubDate>
		<dc:creator>studionashvegas</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Image Replacement]]></category>
		<category><![CDATA[Revised Phark Method]]></category>

		<guid isPermaLink="false">http://www.studionashvegas.com/?p=493</guid>
		<description><![CDATA[Using images on a design is pretty well necessary in today’s visually stunning web.  However, while images look great, there’s no substitute for text when it comes to Search Engine Optimization.  But is there a way to get the visual effect of an image while still having the SEO benefits of text? With CSS, there [...]]]></description>
			<content:encoded><![CDATA[<p>Using images on a design is pretty well necessary in today’s visually stunning web.  However, while images look great, there’s no substitute for text when it comes to Search Engine Optimization.  But is there a way to get the visual effect of an image while still having the SEO benefits of text?</p>
<p>With CSS, there absolutely is.</p>
<p><span id="more-493"></span></p>
<p style="background-image: url(http://www.studionashvegas.com/wp-content/themes/juicy/images/socialmedia.png); text-indent: -9999px; width: 277px; display: block; height: 101px;">Social Media</p>
<p>See this image above me?  Look like a standard image, with a standard &lt;img&gt; tag doesn’t it?  Well, if you were disable the stylesheets, all you’d see is this:</p>
<blockquote><p>Social Media</p></blockquote>
<p>Just text.</p>
<p>So, how can we achieve this?  By using a technique called the Revised Phark Method, with a bit of a twist to make sure that things work no matter where they are.</p>
<p>First, the code (simplified from above because the styles are inline for less “stylesheet bloat”)</p>
<pre class="code">&lt;p class="socialmedia"&gt;Social Media&lt;/p&gt;</pre>
<p class="code">Next, the CSS.  First we give it a definitive height and width:</p>
<pre class="code">.socialmedia{
height: 277px;
width: 101px;
}</pre>
<p class="code">Next, we need to set the display to “block” in order to give it the properties of other “block” elements (like H1, H2, and other similar tags):</p>
<pre> .socialmedia{
height: 277px;
width: 101px;
display:block;
}</pre>
<p>After that, we need to set the background image:</p>
<pre> .socialmedia{
height: 277px;
width: 101px;
display:block;
background-image: url(http://www.studionashvegas.com/wp-content/themes/juicy/images/socialmedia.png);
}</pre>
<p style="background-image: url(http://www.studionashvegas.com/wp-content/themes/juicy/images/socialmedia.png); width: 277px; display: block; height: 101px;">Social Media</p>
<p>That’s starting to look right, but the text is still overlaid on the image.  To get rid of it, we simply indent the text –9999 pixels to the left, removing it from view:</p>
<pre>.socialmedia{
height: 277px;
width: 101px;
display:block;
text-indent:-9999px;
background-image: url(http://www.studionashvegas.com/wp-content/themes/juicy/images/socialmedia.png);
}</pre>
<p>So, what is the benefit of doing this?  Number one, browsers that don’t support images will show text, so you don’t lose the effect just because the image can’t be shown.  Also, the SEO benefits of using an H1 tag with text far outweigh those of using an H1 tag with an image and alt text.  Finally, it allows you to write your markup first without having to worry about jamming items into the design; write the markup, then style the elements in order from top to bottom, which saves time in the long run.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.studionashvegas.com/tutorial/image-replacement-using-css/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.studionashvegas.com/tutorial/image-replacement-using-css/&amp;title=Image+Replacement+Using+CSS" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.studionashvegas.com/tutorial/image-replacement-using-css/&amp;title=Image+Replacement+Using+CSS" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.studionashvegas.com/tutorial/image-replacement-using-css/&amp;t=Image+Replacement+Using+CSS" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=Image+Replacement+Using+CSS&amp;link=http://www.studionashvegas.com/tutorial/image-replacement-using-css/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.studionashvegas.com/tutorial/image-replacement-using-css/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.studionashvegas.com/tutorial/image-replacement-using-css/&amp;title=Image+Replacement+Using+CSS" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.studionashvegas.com/tutorial/image-replacement-using-css/&amp;title=Image+Replacement+Using+CSS" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.studionashvegas.com/tutorial/image-replacement-using-css/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.studionashvegas.com%2Ftutorial%2Fimage-replacement-using-css%2F&amp;t=Image+Replacement+Using+CSS" rel="nofollow" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Image+Replacement+Using+CSS+-+http://b2l.me/47hyu&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.studionashvegas.com%2Ftutorial%2Fimage-replacement-using-css%2F&amp;layout=standard&amp;show-faces=true&amp;width=600&amp;action=recommend&amp;font=verdana&amp;colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:600px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/tutorial/image-replacement-using-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Reset: Leveling the Playing Field (a bit)</title>
		<link>http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/</link>
		<comments>http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 21:23:29 +0000</pubDate>
		<dc:creator>studionashvegas</dc:creator>
				<category><![CDATA[Old Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Reset]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.studionashvegas.com/?p=106</guid>
		<description><![CDATA[I&#8217;ve recently discovered a nice way to standardize the view I get between Internet Explorer and Firefox, which have a standard &#8220;stylesheet&#8221; built in to render websites.  The problem: both browsers use a different stylesheet, which can lead to inconsistancies between the same site on different browsers. So, I&#8217;ve adopted a &#8220;CSS Reset&#8221; file.  What [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently discovered a nice way to standardize the view I get between Internet Explorer and Firefox, which have a standard &#8220;stylesheet&#8221; built in to render websites.  The problem: both browsers use a different stylesheet, which can lead to inconsistancies between the same site on different browsers.</p>
<p>So, I&#8217;ve adopted a &#8220;CSS Reset&#8221; file.  What it does is basically clean the slate and neutralize the styles embedded into the browser, thus rendering IE and Firefox to a 90-99 percent similarity when viewing a page (there will always be bugs in IE&#8217;s website rendering, but for the most part pages show up fantasically).</p>
<p>The CSS Reset:</p>
<pre style="padding-left: 30px;">body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
	margin:0;
	padding:0;
}
table {
	border-collapse:collapse;
	border-spacing:0;
}
fieldset,img {
	border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
	font-style:normal;
	font-weight:normal;
}
ol,ul {
	list-style:none;
}
caption,th {
	text-align:left;
}
h1,h2,h3,h4,h5,h6 {
	font-size:100%;
	font-weight:normal;
}
q:before,q:after {
	content:'';
}
abbr,acronym { border:0;
}</pre>
<p>This is the Yahoo! UI Library Reset.css file, for those that care.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-shr">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/&amp;title=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/&amp;title=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/&amp;t=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.friendfeed.com/share?title=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29&amp;link=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/" rel="nofollow" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/&amp;title=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/&amp;title=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.studionashvegas.com%2Fold-posts%2Fcss-reset-leveling-the-playing-field-a-bit%2F&amp;t=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29" rel="nofollow" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=CSS+Reset%3A+Leveling+the+Playing+Field+%28a+bit%29+-+http://b2l.me/49huz&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div class="facebook_like_button"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.studionashvegas.com%2Fold-posts%2Fcss-reset-leveling-the-playing-field-a-bit%2F&amp;layout=standard&amp;show-faces=true&amp;width=600&amp;action=recommend&amp;font=verdana&amp;colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="padding: 0px 0px; border:none; overflow:hidden; width:600px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/old-posts/css-reset-leveling-the-playing-field-a-bit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
