<?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>mikestreety &#187; HTML/CSS</title>
	<atom:link href="http://www.mikestreety.co.uk/category/html-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikestreety.co.uk</link>
	<description>happy, nerd, tweeter, developer, geek</description>
	<lastBuildDate>Sat, 19 May 2012 09:09:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>HTML5 &#8211; Explained. Briefly</title>
		<link>http://www.mikestreety.co.uk/2012/02/html5-explained-briefly/</link>
		<comments>http://www.mikestreety.co.uk/2012/02/html5-explained-briefly/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 13:41:43 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[The Internet]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://www.mikestreety.co.uk/?p=485</guid>
		<description><![CDATA[After reading the aforementioned HTML5 &#38; CSS3 for the Real World book, I have come to realise that there are loads of changes included with HTML5. I have the book in front of me for me to reference, but I find it &#8230; <a href="http://www.mikestreety.co.uk/2012/02/html5-explained-briefly/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After reading the aforementioned <a href="http://www.sitepoint.com/books/htmlcss1/" target="_blank">HTML5 &amp; CSS3 for the Real World</a> book, I have come to realise that there are <em>loads</em> of changes included with HTML5. I have the book in front of me for me to reference, but I find it laborious to keep opening it to check on the semantic meaning behind</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;small&amp;gt;</div></div>
<p>or</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;section&amp;gt;</div></div>
<p>elements.</p>
<p>So this post is not ground breaking, its not amazing. Its just a summary of changes to the HTML spec in English I understand and can refer back to. Its also to pass to my back end developer so he knows what&#8217;s what. [I'm also posting it incomplete - post a comment if you have an additions/suggestions].</p>
<p>Before you can use any of these elements &#8211; you should really use the HTML5 Shiv &#8211; found in  my basic <a href="http://www.mikestreety.co.uk/2012/01/html5-template-with-jquery-2/">HTML5 Template</a>.</p>
<p>If you get stuck &#8211; HTML5 Doctor created this <a href="http://html5doctor.com/downloads/h5d-sectioning-flowchart.png">simply amazing flowchart</a></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;header&amp;gt;</div></div>
<p>,</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;nav&amp;gt;</div></div>
<p>&amp;</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;footer&amp;gt;</div></div>
<p>are all self explanatory</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;section&amp;gt;</div></div>
<p>- This is content which is related to one another. I.e. a &#8216;section&#8217; of quotes, sections of a tabbed interface.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;article&amp;gt;</div></div>
<p>- Should be a self contained piece of content</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;aside&amp;gt;</div></div>
<p> - Should be something that is tangible to the content, or something like a sidebar or ad space. It should <em>not</em> contain main content.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;h1&amp;gt;</div></div>
<p>- These can appear more than once on a page and should be within context of where it is. I.e. you should be able to remove the parent and everything to still be correctly titled. Each</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;article&amp;gt;</div></div>
<p>should have one.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;figure&amp;gt;</div></div>
<p>&amp;</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;figcaption&amp;gt;</div></div>
<p>- perfect for an image and caption. Would be marked up like:</p>
<pre class="prettyprint">
&lt;figure&gt;
&lt;figcaption&gt; An image&lt;/figcaption&gt;
&lt;img src="" alt=""&gt;
&lt;/figure&gt;
</pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;b&amp;gt;</div></div>
<p>- can be used to make something bold, without it being significant &#8211; e.g. showing a change in a <strong>lump</strong> of code</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;i&amp;gt;</div></div>
<p>- for use in the case that you want italics, but not for emphasis &#8211; e.g. <em>&#8220;Hello&#8221;</em> he said</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;small&amp;gt;</div></div>
<p>can still be used to show text that is smaller, than the rest &#8211; e.g.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;small&amp;gt;Copyright Mike Street&amp;lt;/small&amp;gt;</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;a&amp;gt;</div></div>
<p>- can now be around block elements!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2012/02/html5-explained-briefly/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HTML5 Template with jQuery</title>
		<link>http://www.mikestreety.co.uk/2012/01/html5-template-with-jquery-2/</link>
		<comments>http://www.mikestreety.co.uk/2012/01/html5-template-with-jquery-2/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 19:44:02 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[shim]]></category>

		<guid isPermaLink="false">http://www.mikestreety.co.uk/?p=473</guid>
		<description><![CDATA[A useable, simple HTML5 template with jQuery included. By no means a replacement for the HTML5 Boilerplate, but a quick simple something to get you started!]]></description>
			<content:encoded><![CDATA[<p>A useable, simple HTML5 template with jQuery included. By no means a replacement for the HTML5 Boilerplate, but a quick simple something to get you started!</p>
<p><script src="https://gist.github.com/1657670.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2012/01/html5-template-with-jquery-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text Area Non-Resizeable &#8211; Firefox and Chrome</title>
		<link>http://www.mikestreety.co.uk/2011/06/text-area-non-resizeable-firefox-and-chrome/</link>
		<comments>http://www.mikestreety.co.uk/2011/06/text-area-non-resizeable-firefox-and-chrome/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 08:34:03 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ff4]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox 4]]></category>
		<category><![CDATA[firefox 5]]></category>
		<category><![CDATA[google chrome]]></category>
		<category><![CDATA[resizable]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=136</guid>
		<description><![CDATA[Firefox and chrome both now feature the ability to have their textareas re-sized. This function can be turned off, or adapted with some simple css. To turn the feature off, include the following line in your css: There is also &#8230; <a href="http://www.mikestreety.co.uk/2011/06/text-area-non-resizeable-firefox-and-chrome/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Firefox and chrome both now feature the ability to have their textareas re-sized. This function can be turned off, or adapted with some simple css.</p>
<p>To turn the feature off, include the following line in your css:</p>
<pre class="brush: css; title: ; notranslate">
textarea {
    resize: none;
    }
</pre>
<p>There is also horizontal or vertical only resizing available. The next example is to force the textarea to only be re-sizable on the vertical axis.</p>
<pre class="brush: css; title: ; notranslate">
textarea {
     resize: vertical;
     }
</pre>
<p>Alternatively, if you want to let your users re-size the textarea, but only to certain widths or heights, the textareas obey the max- and min-height/width properties:</p>
<p>[CSS]<br />
textarea {<br />
     max-height: 400px;<br />
     max-width: 400px;<br />
     }<br />
[/CSS]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2011/06/text-area-non-resizeable-firefox-and-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Template with jQuery</title>
		<link>http://www.mikestreety.co.uk/2011/05/html5-template-with-jquery/</link>
		<comments>http://www.mikestreety.co.uk/2011/05/html5-template-with-jquery/#comments</comments>
		<pubDate>Thu, 26 May 2011 10:08:26 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[boilerplate]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=96</guid>
		<description><![CDATA[This post has been updated Just wanted to have a quick resource for starting a HTML5 based page. I have included jQuery as so many sites seem to use it these days! If you can think of anything else that &#8230; <a href="http://www.mikestreety.co.uk/2011/05/html5-template-with-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="color: red; font-weight: bold;">This post has been <a href="http://www.mikestreety.co.uk/?p=473">updated</a></p>
<p>Just wanted to have a quick resource for starting a HTML5 based page. I have included jQuery as so many sites seem to use it these days!</p>
<p>If you can think of anything else that should be added &#8211; feel free to get in touch!</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
	&lt;meta charset=&quot;UTF-8&quot;&gt;
	&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&gt;
	&lt;title&gt;&lt;/title&gt;
	&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot;&gt;
	&lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js&quot;&gt;&lt;/script&gt;
     &lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css&quot; type=&quot;text/css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2011/05/html5-template-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Style Glow on Input Focus</title>
		<link>http://www.mikestreety.co.uk/2011/05/twitter-style-glow-on-input-focus/</link>
		<comments>http://www.mikestreety.co.uk/2011/05/twitter-style-glow-on-input-focus/#comments</comments>
		<pubDate>Mon, 09 May 2011 15:01:18 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[glow]]></category>
		<category><![CDATA[text box]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=98</guid>
		<description><![CDATA[Recently Twitter homepage went through a redesign and included a soft glow on their login boxes when highlighted. A colleague wanted to recreate the effect and asked me to provide the code. The twitter one is a lot more complex &#8230; <a href="http://www.mikestreety.co.uk/2011/05/twitter-style-glow-on-input-focus/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently Twitter homepage went through a redesign and included a soft glow on their login boxes when highlighted. A colleague wanted to recreate the effect and asked me to provide the code.</p>
<p>The twitter one is a lot more complex and has a few more functions but the code below is the basics behind the effect. On the :focus style, the appropriate web browser prefixed CSS is required, but you get the general idea!</p>
<p>[CSS]<br />
input {<br />
	border-radius: 5px;<br />
	border: none;<br />
	outline: none; /* Get Rid of the Webkit Default Glow */<br />
}<br />
input:focus {<br />
		box-shadow: 0 0 10px rgba(255, 255, 255, 0.9); /* -webkit/-moz prefixes needed */<br />
}<br />
[/CSS] </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2011/05/twitter-style-glow-on-input-focus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect to one central domain &#8211; htaccess</title>
		<link>http://www.mikestreety.co.uk/2011/02/edirect-to-one-central-domain-htaccess/</link>
		<comments>http://www.mikestreety.co.uk/2011/02/edirect-to-one-central-domain-htaccess/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 14:55:50 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[central domain]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=55</guid>
		<description><![CDATA[If you would like to &#8216;redirect&#8217; all your users to a central domain (for example if you would like all users to browse your site with the www or you have several parked domains) then paste the following code into &#8230; <a href="http://www.mikestreety.co.uk/2011/02/edirect-to-one-central-domain-htaccess/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you would like to &#8216;redirect&#8217; all your users to a central domain (for example if you would like all users to browse your site with the www or you have several parked domains) then paste the following code into your .htacces file (normally located in the root) &#8211; works on Linux servers with cPanel.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !=www.codehorse.co.uk
RewriteRule ^(.*)$ http://www.codehorse.co.uk/$1 [L,R=301]
&lt;/IfModule&gt;
</pre>
<p>Change the domain where appropriate. In English this says if its not codehorse.co.uk then redirect to codehorse.co.uk.</p>
<p>This is especially good for SEO purposes as it means google does not see duplicate content if you have several parked domains, or if you have flash on your website which generally requires the www. prefix to work</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2011/02/edirect-to-one-central-domain-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP to get the dimensions of an image</title>
		<link>http://www.mikestreety.co.uk/2011/02/using-php-to-get-the-dimensions-of-an-image/</link>
		<comments>http://www.mikestreety.co.uk/2011/02/using-php-to-get-the-dimensions-of-an-image/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 11:26:20 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=38</guid>
		<description><![CDATA[The following code will get the dimensions of an image: I found this useful when using a lightbox to load an image that I didn&#8217;t initially know the size of, to ensure the lightbox positioned itsself in the middle, based &#8230; <a href="http://www.mikestreety.co.uk/2011/02/using-php-to-get-the-dimensions-of-an-image/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The following code will get the dimensions of an image:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
list($width, $height, $type, $attr) = getimagesize(PATH_TO_IMAGE);
?&gt;
</pre>
<p>I found this useful when using a lightbox to load an image that I didn&#8217;t initially know the size of, to ensure the lightbox positioned itsself in the middle, based on the height and width of the image.</p>
<p>The contents of $attr is useful for slotting straight into an</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;img&gt;</div></div>
<p>tag, like so:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;img src=&quot;URL&quot; &lt;?=$attr?&gt;&quot; /&gt;
</pre>
<p>This will produce, for example:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;img src=&quot;URL&quot; width=&quot;200&quot; height=&quot;300&quot; /&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2011/02/using-php-to-get-the-dimensions-of-an-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Develop, Style or Add Content to a Live Site</title>
		<link>http://www.mikestreety.co.uk/2010/12/develop-and-style-something-on-a-live-site/</link>
		<comments>http://www.mikestreety.co.uk/2010/12/develop-and-style-something-on-a-live-site/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 15:01:17 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[adding content]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redirecting]]></category>
		<category><![CDATA[secret links]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=29</guid>
		<description><![CDATA[If you want to develop/edit something on a live website, but you want to send a preview to a client, it can sometimes be tricky weighing up where and how to do it. If your website is PHP, there is &#8230; <a href="http://www.mikestreety.co.uk/2010/12/develop-and-style-something-on-a-live-site/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you want to develop/edit something on a live website, but you want to send a preview to a client, it can sometimes be tricky weighing up where and how to do it. </p>
<p>If your website is PHP, there is a simple piece of code you can implement to send someone a test URL. Copy and paste the below code into wherever you need to add/change.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if($_SERVER['QUERY_STRING'] == 'test') {  ?&gt;
&lt;!-- code protected from public viewing --&gt;
&lt;?php } ?&gt;</pre>
<p>You can put anything in between the PHP, Including CSS, HTML and PHP. If you need to replace something rather than add, simply adapt it to be an ELSE statement like so:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if($_SERVER['QUERY_STRING'] == 'test') {  ?&gt;
&lt;!-- code protected from public viewing --&gt;
&lt;?php } else { ?&gt;
&lt;!-- Original Code --&gt;
&lt;?php } ?&gt;
</pre>
<p>To access the extra content, navigate to <strong>www.yoursite.com/anypage?test</strong>. To change &#8216;?test&#8217; to any other word, edit the first line of the PHP.</p>
<p>This is also helpful for use with contact forms (sending the user back to your contact page with ?thanks in the URL or similar and replacing the contact form with a message), or sending users to different links on the same page to reveal codes or links.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2010/12/develop-and-style-something-on-a-live-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drop Shadow</title>
		<link>http://www.mikestreety.co.uk/2010/12/drop-shadow/</link>
		<comments>http://www.mikestreety.co.uk/2010/12/drop-shadow/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 11:03:17 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[drop shadow]]></category>
		<category><![CDATA[IE drop shadow]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=27</guid>
		<description><![CDATA[These text and box shadow techniques were written in an edition of .net magazine. At the time I couldn&#8217;t find any documentation on the text/box shadow fallbacks for up to IE 5.5 (which these are.) However, they should be used &#8230; <a href="http://www.mikestreety.co.uk/2010/12/drop-shadow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These text and box shadow techniques were written in an edition of .net magazine. At the time I couldn&#8217;t find any documentation on the text/box shadow fallbacks for up to IE 5.5 (which these are.)</p>
<p>However, they should be used with great caution &#8211; the MS Filer CSS properties use a lot of processing power and should be used sparingly. </p>
<p>The .net magazine article can be found here: <a href="http://www.netmagazine.com/features/top-10-css3-techniques">CSS3 Techniques</a></p>
<p><strong>Box Shadow:</strong></p>
<pre class="brush: css; title: ; notranslate">
-moz-box-shadow:0px 5px 5px #333333;
-webkit-box-shadow:0px 5px 5px #333333;
box-shadow:0px 5px 5px #333333;
/*IE 8*/
-ms-filter: &quot;progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=180, Color='#333333')&quot;;
/*IE 5.5 - 7*/
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=180, Color='#333333');
</pre>
<p><strong>Text Shadow:</strong></p>
<pre class="brush: css; title: ; notranslate">
text-shadow:2px 2px 2px #333333
/*IE 8*/
-ms-filter: &quot;progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=180, Color='#333333')&quot;;
/*IE 5.5 - 7*/
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=180, Color='#333333');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2010/12/drop-shadow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset CSS</title>
		<link>http://www.mikestreety.co.uk/2010/12/reset-css/</link>
		<comments>http://www.mikestreety.co.uk/2010/12/reset-css/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 09:43:38 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Eric Meyer]]></category>
		<category><![CDATA[reset CSS]]></category>

		<guid isPermaLink="false">http://codehorse.co.uk/?p=25</guid>
		<description><![CDATA[html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, &#8230; <a href="http://www.mikestreety.co.uk/2010/12/reset-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre class="prettyprint linenums">
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input, select, textarea { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
:focus, :active {outline: none;}

 /*The elements below get reset but generally want to have the default settings */
strong {font-weight: bold;}
em {font-style: italic;}
input, textarea, select {padding: 3px; border: 1px solid #ccc;}
</pre>
<p>This reset css has been slightly adapted and adjusted from the original reset css created by  <a href="http://meyerweb.com/eric/tools/css/reset/">Eric Meyer</a>. If you have any suggestions or improvements, let us know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikestreety.co.uk/2010/12/reset-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

