<?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>Web and Graphic Design Blog</title>
	<atom:link href="http://www.prismgraphicdesign.co.uk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.prismgraphicdesign.co.uk/blog</link>
	<description>Anything and everything to do with web and graphic design</description>
	<lastBuildDate>Sun, 03 Jan 2010 02:15:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Developer Center</title>
		<link>http://www.prismgraphicdesign.co.uk/blog/?p=51</link>
		<comments>http://www.prismgraphicdesign.co.uk/blog/?p=51#comments</comments>
		<pubDate>Sat, 28 Nov 2009 23:38:00 +0000</pubDate>
		<dc:creator>PGD</dc:creator>
				<category><![CDATA[Developer Center]]></category>
		<category><![CDATA[developer reference]]></category>

		<guid isPermaLink="false">http://www.prismgraphicdesign.co.uk/blog/?p=51</guid>
		<description><![CDATA[We have some interesting reference pages for developers. 
Currently we have a safe web colour chart, printable ASCII codes and characters and a list of standard fonts with their respective substitute fonts.
Click the link below:
Developer Center
]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><strong><span class="newcontent">We have some interesting reference pages for developers. </span></strong></p>
<p class="newfont" style="text-align: left;">Currently we have a safe web colour chart, printable ASCII codes and characters and a list of standard fonts with their respective substitute fonts.</p>
<p style="text-align: left;"><strong><span class="newcontent">Click the link below:</span></strong></p>
<p style="text-align: left;"><a href="http://www.prismgraphicdesign.co.uk/developer_center.php">Developer Center</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prismgraphicdesign.co.uk/blog/?feed=rss2&amp;p=51</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding CSS</title>
		<link>http://www.prismgraphicdesign.co.uk/blog/?p=29</link>
		<comments>http://www.prismgraphicdesign.co.uk/blog/?p=29#comments</comments>
		<pubDate>Sat, 28 Nov 2009 21:11:30 +0000</pubDate>
		<dc:creator>PGD</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[adding css]]></category>
		<category><![CDATA[external style sheet]]></category>
		<category><![CDATA[inline style]]></category>

		<guid isPermaLink="false">http://www.prismgraphicdesign.co.uk/blog/?p=29</guid>
		<description><![CDATA[Inline Styles:
An example of an inline style is below:
&#60;div name=&#8221;myDiv&#8221;  style=&#8221;background-color:black;&#8221;&#62;&#60;/div&#62;
The css property &#8220;background-color&#8221; is only applied to the div &#8220;myDiv&#8221;.  Inline styles should be used only when the more conventional methods (below) will not help.
Internal Style Sheet
When you have a page which has a unique style, using an internal style sheet may be the ]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><strong><span class="newfont" style="color: #008000;">Inline Styles:</span></strong></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span style="color: #000000;">An example of an inline style is below:</span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span style="color: #000000;">&lt;div name=&#8221;myDiv&#8221;  style=&#8221;background-color:black;&#8221;&gt;&lt;/div&gt;</span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">The css property &#8220;background-color&#8221; is only applied to the div &#8220;myDiv&#8221;.  Inline styles should be used only when the more conventional methods (below) will not help.</span></span></p>
<p style="text-align: left;"><strong><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span style="color: #008000;">Internal Style Sheet</span></span></span></strong></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">When you have a page which has a unique style, using an internal style sheet may be the best option.  See example below:</span></span></span></span><span class="newfont"><br />
&lt;head&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
p {margin-left:20px}<br />
body {background-image:url(&#8221;images/bkground_image.gif&#8221;)}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
</span><br />
<span class="newfont" style="color: #008000;"><span style="color: #000000;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">As you can see the style sheet must be added between the &lt;head&gt;&lt;/head&gt; tags. This code will set all &lt;p&gt; </span></span></span></span><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">tags </span></span></span></span><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">within the current page to have a left margin of 20pixels and set the background image of the body.</span></span></span></span></p>
<p style="text-align: left;"><strong><span class="newfont" style="color: #008000;">External Style Sheets</span></strong></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">When you need styles applied to many pages, an external style sheet is ideal. If an external style sheet is linked to all the pages on a site, one change here can change the look of the entire website. An example of an external style sheet is below:</span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">p {color:red;font-size:14px;}</span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">External style sheets should have a .css extension. They should only contain css code.</span></span></p>
<p style="text-align: left;"><span class="newfont"><br />
To link an external style sheet to a page, use the following code:<br />
&lt;head&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;main_style.css&#8221; /&gt;<br />
&lt;/head&gt;<br />
Again, notice the above line is located between the &lt;head&gt;&lt;/head&gt; tags.<br />
</span></p>
<p style="text-align: left;"><strong><span class="newfont" style="color: #008000;">How css cascades</span></strong></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">When a tag has a number of css styles applied to it, which one will it use?</span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;">The priority order for css is as follows (1 is highest and 4 lowest priority):</span></span><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"> </span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;">1. Inline style</span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"> </span></span></span><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;">2. Internal Style Sheet</span></span></span><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"> </span></span></span></p>
<p style="text-align: left;"><span style="color: #008000;"><span style="color: #000000;"><span class="newfont" style="color: #000080;">3. External Style Sheet</span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;">4. Browser Default</span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"><span class="newfont" style="color: #000000;">So an inline style will override everything else.</span></span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"><span class="newfont" style="color: #000000;">Note: If the external style sheet is linked in after the internal style sheet, the external style sheet will have the higher priority.<br />
</span></span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"> </span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"> </span></span></span></p>
<p style="text-align: left;"><span class="newfont" style="color: #008000;"><span class="newfont" style="color: #000000;"><span class="newfont" style="color: #000080;"><br />
</span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prismgraphicdesign.co.uk/blog/?feed=rss2&amp;p=29</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Image Preloads</title>
		<link>http://www.prismgraphicdesign.co.uk/blog/?p=12</link>
		<comments>http://www.prismgraphicdesign.co.uk/blog/?p=12#comments</comments>
		<pubDate>Fri, 20 Nov 2009 12:42:23 +0000</pubDate>
		<dc:creator>PGD</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS preload]]></category>
		<category><![CDATA[image preload]]></category>

		<guid isPermaLink="false">http://www.prismgraphicdesign.co.uk/blog/?p=12</guid>
		<description><![CDATA[It can be useful on occasions to preload an image. This means the image is loaded with the page. Not after it.
For example, you have two images. One of a car and one of a motorbike. When you hover over the car with the mouse, it changes to the motorbike. The first time you hover ]]></description>
			<content:encoded><![CDATA[<p class="newfont" style="text-align: left;">It can be useful on occasions to preload an image. This means the image is loaded <strong>with </strong>the page. Not <strong>after </strong>it.</p>
<p class="newfont" style="text-align: left;">For example, you have two images. One of a car and one of a motorbike. When you hover over the car with the mouse, it changes to the motorbike. The first time you hover over the car however, there is a delay while the motorbike image is downloaded. This is because the motorbike image was not preloaded.</p>
<p class="newfont" style="text-align: left;">Javascript can be used to preload an image. This is not ideal however as it&#8217;s a little tricky and not all browsers support javascript.</p>
<p class="newfont" style="text-align: left;">The easiest solution is to use CSS. The code below will preload the motorbike image:</p>
<p class="newfont" style="text-align: left;"><span style="color: #0000ff;">&lt;img src=&#8217;images/motorbike.jpg&#8217; alt=&#8221;Motorbike&#8221; style=&#8217;display:none;&#8217; /&gt;</span></p>
<p class="newfont" style="text-align: left;">A better way is to create a class. Assign this to any images that need preloading:</p>
<p style="text-align: left;"><span class="newfont" style="color: #0000ff;">&lt;style type=&#8217;text/css&#8217;&gt;</span></p>
<p class="newfont" style="text-align: left;"><span style="color: #0000ff;">.preloads</span><span style="color: #0000ff;"> {display:none;}</span></p>
<p class="newfont" style="text-align: left;"><span style="color: #0000ff;">&lt;/style&gt;</span></p>
<p class="newfont" style="text-align: left;"><span style="color: #0000ff;">&lt;img src=&#8217;images/motorbike.jpg&#8217; alt=&#8221;Motorbike&#8221; class=&#8217;preloads&#8217; /&gt;</span></p>
<p class="newfont" style="text-align: left;">Image preloading can also be used to load images for a different page. Once the browser has cached the image it will be there whenever it&#8217;s required. For example, you may preload product images in your index.html file, ready for when a user clicks on your products page.</p>
<p class="newfont" style="text-align: left;">By putting the image preload CSS code at the bottom of the index.html file, the preloading will happen after the content has been sent to the screen. Therefore the user is not waiting for content to appear.</p>
<p class="newfont" style="text-align: left;">Hope this helps and thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prismgraphicdesign.co.uk/blog/?feed=rss2&amp;p=12</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

