<?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>Nashville, TN&#039;s Best WordPress Designer/Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 22:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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>admin</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[<p>Posted in <a href="http://www.studionashvegas.com/category/tutorial/" title="Tutorial">Tutorial</a></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]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/tutorial/" title="Tutorial">Tutorial</a></p><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>
]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/tutorial/tired-of-refreshing-your-css-everytime-you-make-a-change/feed/</wfw:commentRss>
		<slash:comments>12</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>admin</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[<p>Posted in <a href="http://www.studionashvegas.com/category/tutorial/" title="Tutorial">Tutorial</a></p>Using images on a design is pretty well necessary in today’s visually stunning web.  However, while images look great,]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/tutorial/" title="Tutorial">Tutorial</a></p><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>
]]></content:encoded>
			<wfw:commentRss>http://www.studionashvegas.com/tutorial/image-replacement-using-css/feed/</wfw:commentRss>
		<slash:comments>4</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>admin</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[<p>Posted in <a href="http://www.studionashvegas.com/category/old-posts/" title="Old Posts">Old Posts</a></p>I&#8217;ve recently discovered a nice way to standardize the view I get between Internet Explorer and Firefox, which have]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://www.studionashvegas.com/category/old-posts/" title="Old Posts">Old Posts</a></p><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>
]]></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>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 5/25 queries in 0.015 seconds using disk: basic
Object Caching 559/598 objects using disk: basic
Content Delivery Network via cdn.studionashvegas.com

Served from: www.studionashvegas.com @ 2012-02-04 04:34:45 -->
