<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[KillerSites.com Web Design Forums - CSS Beginner - I can't link to an external stylesheet? [fixed]]]></title>
		<link>http://www.killersites.com/forums/topic/2221/css-beginner-i-cant-link-to-an-external-stylesheet-fixed/</link>
		<description><![CDATA[The most recent posts in CSS Beginner - I can't link to an external stylesheet? [fixed].]]></description>
		<lastBuildDate>Sat, 26 Sep 2009 00:43:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CSS Beginner - I can't link to an external stylesheet? [fixed]]]></title>
			<link>http://www.killersites.com/forums/post/11004/#p11004</link>
			<description><![CDATA[<p>Sorry about that, at first I thought you meant the &quot;./&quot; was a mistake. It changes nothing in the html preview - is it a problem if my root directory for the website contains spaces? I tried it without spaces, bur nothing happened.</p><p>Edit: My apologies - the ./ did work. Sort of. When I preview index.html in a browser, it is styled correctly. There must be some problem with Komodo Edit&#039;s internal preview, so I&#039;ll take this to their website now. </p><p>Edit2: Yes, it seems this is a reported bug when running Komodo Edit on Mac OSX 10.5/10.6 . It is fixed by putting &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; at the top of the document.</p><p>Thanks for your help.</p>]]></description>
			<author><![CDATA[dummy@example.com (NikMac)]]></author>
			<pubDate>Sat, 26 Sep 2009 00:43:21 +0000</pubDate>
			<guid>http://www.killersites.com/forums/post/11004/#p11004</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSS Beginner - I can't link to an external stylesheet? [fixed]]]></title>
			<link>http://www.killersites.com/forums/post/11003/#p11003</link>
			<description><![CDATA[<p>Did you try the &quot;./&quot; solution? You might be surprised that it works.</p>]]></description>
			<author><![CDATA[dummy@example.com (jlhaslip)]]></author>
			<pubDate>Sat, 26 Sep 2009 00:41:04 +0000</pubDate>
			<guid>http://www.killersites.com/forums/post/11003/#p11003</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSS Beginner - I can't link to an external stylesheet? [fixed]]]></title>
			<link>http://www.killersites.com/forums/post/11002/#p11002</link>
			<description><![CDATA[<p>Hi, thanks for the quick reply.</p><p>Edit: Sorry, I misunderstood - you&#039;re saying the code <strong>should</strong> be <br /></p><div class="codebox"><pre><code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./styles/aagstyle.css&quot; /&gt;</code></pre></div><p>?<br />I tried that and nothing is changing.</p>]]></description>
			<author><![CDATA[dummy@example.com (NikMac)]]></author>
			<pubDate>Sat, 26 Sep 2009 00:38:59 +0000</pubDate>
			<guid>http://www.killersites.com/forums/post/11002/#p11002</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSS Beginner - I can't link to an external stylesheet? [fixed]]]></title>
			<link>http://www.killersites.com/forums/post/11001/#p11001</link>
			<description><![CDATA[<div class="codebox"><pre><code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./styles/aagstyle.css&quot; /&gt;</code></pre></div><p>Notice the &quot;./&quot; in front of the file reference? <br />That means to start looking in this folder (the location of the html file).<br />&quot;../&quot; means to go &quot;back&quot; one folder to start looking.</p><p>This is referred to as &quot;relative addressing&quot; . Google it.</p>]]></description>
			<author><![CDATA[dummy@example.com (jlhaslip)]]></author>
			<pubDate>Sat, 26 Sep 2009 00:33:02 +0000</pubDate>
			<guid>http://www.killersites.com/forums/post/11001/#p11001</guid>
		</item>
		<item>
			<title><![CDATA[CSS Beginner - I can't link to an external stylesheet? [fixed]]]></title>
			<link>http://www.killersites.com/forums/post/11000/#p11000</link>
			<description><![CDATA[<p>Hi,</p><p>[FIXED - it seems that my .html file was loading correctly, but there was a problem with Komodo Edit&#039;s preview, which made me think something was wrong. Thanks.]</p><br /><p>I&#039;ve gone through the css tutorial at w3schools.com - but I can&#039;t seem to make my html file link to my css file.<br />In my root folder I have the index.html file, and a &quot;styles&quot; folder which contains my &quot;aagstyle.css&quot; file.</p><p>Index.html code:<br /></p><div class="codebox"><pre><code>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
[title, meta tags, etc.]
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;styles/aagstyle.css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Hello World&lt;/h1&gt;
. . . .
&lt;/body&gt;
&lt;/html&gt;</code></pre></div><p>In my css file: (just some things I pulled out of the tutorial to experiment with)<br /></p><div class="codebox"><pre><code>body
{
    background-color:red;
    font-family:arial,georgia,sans-serif;
    font-size:100%
}
h1 {color:blue}
hr {color:red}
p
{
    font-size:0.75em;
    margin-left:20px;
    color:red
}
p.intro
{
    height:100px;
    margin:50px 20px
}
p.left {text-align:left}
p.center {text-align:center}
p.right {text-align:right}</code></pre></div><p>What am I doing wrong? My .html file has no styling at all. I&#039;m assuming it&#039;s something to do with the directories, but I can&#039;t figure it out.</p><p>If it makes any difference I&#039;m using Komodo Edit on Mac OSX 10.5.8</p><p>Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (NikMac)]]></author>
			<pubDate>Sat, 26 Sep 2009 00:04:29 +0000</pubDate>
			<guid>http://www.killersites.com/forums/post/11000/#p11000</guid>
		</item>
	</channel>
</rss>
