<?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>Display:Block &#187; Site</title>
	<atom:link href="http://display-block.co.uk/category/site/feed/" rel="self" type="application/rss+xml" />
	<link>http://display-block.co.uk</link>
	<description>A Little Bit About Everything... Web Development, Hardware, CSS, HTML, Tips, Tricks, Reviews, and everything else</description>
	<lastBuildDate>Mon, 21 Sep 2009 21:25:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
<link>http://display-block.co.uk</link>
<url>http://display-block.co.uk/wp-content/plugins/maxblogpress-favicon/icons/favicon-31.ico</url>
<title>Display:Block</title>
</image>
		<item>
		<title>Crime &amp; Investigation Channel Network Launch</title>
		<link>http://display-block.co.uk/crime-investigation-channel-network-launch/</link>
		<comments>http://display-block.co.uk/crime-investigation-channel-network-launch/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 19:37:52 +0000</pubDate>
		<dc:creator>Sav</dc:creator>
				<category><![CDATA[News Flash]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://display-block.co.uk/?p=584</guid>
		<description><![CDATA[The Crime &#38; Investigation channel got a new face today. I was able to be a part of the team that aided Sky&#8217;s History Channel in re-skinning the Crime &#38; Investigation site, bringing it up to par with the History site &#8211; and then some. We added a lot of new enhancements and features along [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Crime &amp; Investigation channel got a new face today.</strong><br />
I was able to be a part of the team that aided Sky&#8217;s History Channel in re-skinning the Crime &amp; Investigation site, bringing it up to par with the History site &#8211; and then some.</p>
<p>We added a lot of new enhancements and features along the way.  We created a new Games Hub page which will also be added to the History site at a later stage. And, needless to say, made it all that much prettier.</p>
<div id="attachment_585" class="wp-caption alignright" style="width: 250px"><a href="http://www.crimeandinvestigation.co.uk/"><img class="size-full wp-image-585 " title="Crime &amp; Investigation Channel" src="http://display-block.co.uk/wp-content/uploads/2009/09/ci-screenshot.jpg" alt="Crime &amp; Investigation Channel" width="240" height="538" /></a><p class="wp-caption-text">Crime &amp; Investigation Channel - Home Page</p></div>
]]></content:encoded>
			<wfw:commentRss>http://display-block.co.uk/crime-investigation-channel-network-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Image Gallery</title>
		<link>http://display-block.co.uk/css-image-gallery/</link>
		<comments>http://display-block.co.uk/css-image-gallery/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 18:06:56 +0000</pubDate>
		<dc:creator>Sav</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[News Flash]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Sites]]></category>

		<guid isPermaLink="false">http://display-block.co.uk/?p=377</guid>
		<description><![CDATA[There are many ways to create an online image gallery. There are applications you can buy, or PHP, or Java galleries. However, CSS is a great and cheap way of doing this, and you know it will work across all browsers. I will be using Dreamweaver CS3 in this tutorial. Seeing as we&#8217;re using CSS, [...]]]></description>
			<content:encoded><![CDATA[<p>There are many ways to create an online image gallery. There are applications you can buy, or PHP, or Java galleries. However, CSS is a great and cheap way of doing this, and you know it will work across all browsers.</p>
<p>I will be using Dreamweaver CS3 in this tutorial.</p>
<p>Seeing as we&#8217;re using CSS, making all your images a standard size will help greatly. So think beforehand about how big you would like your images, both the thumbnails and the large image. I will personally be using a thumbnail of 90x90px, and a large size of about 500x375px.</p>
<ol>
<li>First, create a folder with all your images ready, both large and small. Edit your images to the correct sizes, and make your thumbnails with the same name, but have something like tn on the end, or an identifying mark.</li>
<li>Next create a new HTML document, and make sure its XHTML 1.0 Transitional. <span style="color: #0000ff;">New&gt;HTML&gt;None&gt;Create</span>, then choose your font and size, preferably something like Georgia as its nice and clear, and 14px font. You can do this by going to <span style="color: #0000ff;">Modify&gt;Page Properties</span></li>
<li>The images both large and small are to be contained in a Div tag within the Body. Go to <span style="color: #0000ff;">Insert&gt;Layout Objects&gt;Div Tag</span>. Then click <span style="color: #0000ff;">New CSS Style</span>, choose <span style="color: #0000ff;">Advanced</span> then give it a name of something like: <span style="color: #ff0000;">#container</span> and <span style="color: #0000ff;">Define in: This Document Only</span>. Next select the <span style="color: #0000ff;">Box</span> Category, and define the size of about 600x475px.</li>
<li>The images are going to go into a Unordered List. So the container should look like<br />
<span style="color: #ff0000;">&lt;div id=&#8221;container&#8221;&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/div&gt;</span>.<br />
Next we need to start our lists. So open your <span style="color: #ff0000;">&lt;li&gt;&lt;/li&gt;</span> and close it. Your code should look like:<br />
<span style="color: #ff0000;">&lt;div id=&#8221;container&#8221;&gt;&lt;ul&gt;<br />
&lt;li&gt;&lt;img src=&#8221;images/canyon.jpg&#8221; alt=&#8221;Canyon&#8221; tile=&#8221;Canyon&#8221; /&gt;&lt;br /&gt;<br />
This will be your text for the image should be placed.<br />
&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</span><br />
Repeat the list tags to include all images in your gallery, eg:<br />
<span style="color: #ff0000;">&lt;li&gt;&lt;img src=&#8221;images/canyon.jpg&#8221; alt=&#8221;Canyon&#8221; tile=&#8221;Canyon&#8221; /&gt;&lt;br /&gt;<br />
This will be your text for the image should be placed.<br />
&lt;/li&gt;<br />
&lt;li&gt;&lt;img src=&#8221;images/moon.jpg&#8221; alt=&#8221;Moon&#8221; tile=&#8221;Moon&#8221; /&gt;&lt;br /&gt;<br />
This will be your text for the image should be placed.<br />
&lt;/li&gt;</span></li>
<li>Next we need to make the images into links, with a unique class tag, eg photoa, photob and so on. To do this, place:<span style="color: #ff0000;"> &lt;a class=&#8221;gallery photos&#8221; href=&#8221;#&#8221;&gt;</span> so your code should look like:<br />
<span style="color: #ff0000;">&lt;li&gt;&lt;a class=&#8221;gallery photoa&#8221; href=&#8221;#&#8221;&gt;<br />
&lt;img src=&#8221;images/canyon.jpg&#8221; alt=&#8221;Canyon&#8221; tile=&#8221;Canyon&#8221; /&gt;&lt;br /&gt;<br />
This will be your text for the image should be placed.<br />
&lt;/a&gt;&lt;/li&gt;</span>.<br />
Finally we will need to link the Text and Images together, to do this we use a <span style="color: #ff0000;">&lt;span&gt;</span> tag, eg:<br />
<span style="color: #ff0000;">&lt;li&gt;&lt;a class=&#8221;gallery photoa&#8221; href=&#8221;#&#8221;&gt;&lt;span&gt;<br />
&lt;img src=&#8221;</span><span style="color: #ff0000;">images</span><span style="color: #ff0000;">/canyon.jpg&#8221; alt=&#8221;Canyon&#8221; tile=&#8221;Canyon&#8221; /&gt;&lt;br /&gt;<br />
This will be your text for the image should be placed.<br />
&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span></li>
<li>Now is a good time to remove bullets and indentation. Add this code in-between the style tags in your header:<br />
<span style="color: #ff0000;">#container ul {<br />
padding: 0;<br />
margin: 0;<br />
list-style-type: none;<br />
}</span></li>
<li>At it&#8217;s present form all the images display, this is needed so that they pre-load. However they need to be hidden so that they only appear on roll over. This is done by placing them in a container that is 1x1px. This will only display the top left pixel of each image. Add the following code to your style tag:<br />
<span style="color: #ff0000;">#container a.gallery span {<br />
position: absolute;<br />
width: 1px;<br />
height: 1px;<br />
top: 5px;<br />
left: 5px;<br />
overflow: hidden;<br />
background: #fff;<br />
}</span><br />
The Page should effectively be blank now, except for a small dot on the top left.</li>
<li>It&#8217;s time to start adding the thumbnail images. Add the following code to you style tag again:<br />
<span style="color: #ff0000;">#container a.gallery, #container a.gallery:visited {<br />
display: block;<br />
color: #000;<br />
text-decoration: none;<br />
border: 1px solid #000;<br />
margin: 1px 2px 1px 2px;<br />
text-align: left;<br />
cursor: default;<br />
}</span><br />
Now all images need to be defined in the style tags to display the thumbnails, to do this add:<br />
<span style="color: #ff0000;">#container a.photoa {<br />
background: url(</span><span style="color: #ff0000;">images</span><span style="color: #ff0000;">/canyon-tn.jpg);<br />
height: 90px;<br />
width: 90px;<br />
}</span></li>
<li> Now that the thumbs have been put in place its time to organise them. Simply add:<br />
<span style="color: #ff0000;">#container ul {<br />
width: 100px;<br />
height: 380px;<br />
}<br />
#container li {<br />
float: left;<br />
}</span><br />
The width and height here should be changed depending on the amount of thumbnails that you wish to display. I have 4 and displaying 1 after the other down the side, so i have 100px width, if i incresed it to 200px it would display 2 lists running down the side. The height i have used is to fit in the 4 running down.</li>
<li>Next add another bit of CSS into the style tags:<br />
<span style="color: #ff0000;">#container a.gallery:hover span {<br />
position: absolute;<br />
width: 500px;<br />
height: 375px;<br />
top: 10px;<br />
left: 170px;<br />
color: #000;<br />
background: #fff;<br />
}</span><br />
This code will apear when the mouse is placed over a thumbnail, then the main image will apear. Width and height should be the same dimensions as the main image. Top and left define how many pixels away from the top and left of the page it sits, adjust these till you are happy.</li>
<li>Finally add a border to the thumbnails when you hover over them, simplay add:<br />
<span style="color: #ff0000;">#container a.gallery:hover {<br />
border: 1px solid #fff;<br />
}</span></li>
</ol>
<p>Hope you enjoyed, and here are the source files&#8230; <a href="http://display-block.co.uk/wp-content/uploads/2008/11/source.zip">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://display-block.co.uk/css-image-gallery/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
