<?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>James Revillini &#187; stylesheet</title>
	<atom:link href="http://james.revillini.com/tag/stylesheet/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.revillini.com</link>
	<description>Say 'no' to styrofoam.</description>
	<lastBuildDate>Fri, 15 Oct 2010 12:24:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>[SOLVED] Dreamweaver: Site-wide, design time style sheets using templates</title>
		<link>http://james.revillini.com/2008/01/24/solved-dreamweaver-site-wide-design-time-style-sheets-using-templates/</link>
		<comments>http://james.revillini.com/2008/01/24/solved-dreamweaver-site-wide-design-time-style-sheets-using-templates/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 20:32:46 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design-time]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://james.revillini.com/2008/01/24/solved-dreamweaver-site-wide-design-time-style-sheets-using-templates/</guid>
		<description><![CDATA[Prerequisites: Every page of your site must be a PHP file, or some kind of server side language file. You must use Dreamweaver templates to make the design-time stylesheet automatically apply itself to the pages of your site. This solution is not going to work for everyone because of the two prereqs above; sorry about [...]]]></description>
			<content:encoded><![CDATA[<p>Prerequisites:</p>
<ol>
<li>Every page of your site must be a PHP file, or some kind of server side language file.</li>
<li>You must use Dreamweaver templates to make the design-time stylesheet automatically apply itself to the pages of your site.</li>
</ol>
<p>This solution is not going to work for everyone  because of the two prereqs above; sorry about that.  But if you do meet those requirements, then your life just got a LOT easier.</p>
<p>It&#8217;s simple:</p>
<ol>
<li>Open your template.</li>
<li>Switch to code view.</li>
<li>Go to the &lt;head&gt; tag</li>
<li>insert this code:<br />
<code>&lt;?php if (false) : //design time style sheet hack ?&gt;<br />
&lt;link href="../css/</code><a title="DWCS3 - YUI2.4.1 Design-time Stylesheet" href="http://james.revillini.com/wp-content/uploads/2008/01/yui-241-dwcs3-design-time.css"><code>yui-2.4.1-dwcs3-design-time.css</code></a><code>" rel="stylesheet" type="text/css"&gt;<br />
&lt;!-- add as many DT stylesheets as you want in this area! --&gt;<br />
&lt;?php endif; ?&gt;</code></li>
<li>Save the template (and apply it to all the pages of your site).</li>
</ol>
<p>Notes:</p>
<p>The linked stylesheet file is one I use to correct the rendering of a YUI  Grids-based layout because natively, Dreamweaver renders it with the main .yui-b block taking only half of the space of the #bd element.</p>
<p>And a note to Adobe:</p>
<p>BUILD THIS FUCKING FEATURE INTO THE GODDAMNED SOFTWARE. (This is the first time I&#8217;ve ever sworn on the record on the Web.  Sorry for offending non-Adobe employees.)</p>
]]></content:encoded>
			<wfw:commentRss>http://james.revillini.com/2008/01/24/solved-dreamweaver-site-wide-design-time-style-sheets-using-templates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

