<?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 Design Pond &#187; Tips &amp; Tutorials</title>
	<atom:link href="http://webdesignpond.co.uk/category/tips-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesignpond.co.uk</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 27 Jan 2012 08:20:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress Post Thumbnail</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/wordpress-post-thumbnail/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/wordpress-post-thumbnail/#comments</comments>
		<pubDate>Wed, 04 May 2011 07:15:39 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2655</guid>
		<description><![CDATA[Post Thumbnail adds a featured image box within the wordpress editor, which works similar to the add an image function. This makes it a lot easier for those with not that much knowledge on the workings of a website to quickly add an image that will displayed on other pages. Here is a quick tutorial [...]]]></description>
			<content:encoded><![CDATA[<p>Post Thumbnail adds a featured image box within the  wordpress editor, which works similar to the add an image function. This makes it a lot easier for those with not that much knowledge on the workings of a website to quickly add an image that will displayed on other pages. Here is a quick tutorial on how to get it to work within a theme.</p>
<h2>Activating  the function</h2>
<p>First things first, open up the functions.php within your theme, if you don&#8217;t have one you will need to create one.  To activate support for this function do one of the following:</p>
<p><strong>To add it to both posts and pages:</strong></p>
<pre class="brush: php; title: ; notranslate">add_theme_support( 'post-thumbnails' ); </pre>
<p><strong>For just posts:</strong></p>
<pre class="brush: php; title: ; notranslate">add_theme_support( 'post-thumbnails', array( 'post' ) );</pre>
<p><strong>For just pages:</strong></p>
<pre class="brush: php; title: ; notranslate">add_theme_support( 'post-thumbnails', array( 'page' ) ); </pre>
<p><strong>Setting a size for the featured thumbnail:</strong></p>
<pre class="brush: php; title: ; notranslate">set_post_thumbnail_size( 70, 70 ); </pre>
<p>The above will make the image 70 pixels by 70 pixels, however if the image isn&#8217;t square it will mean that it will make the larger size 70px and then resize the smaller side to keep the aspect ratio of the image (for example 70px by 25px).  </p>
<p>To force the image to crop to 70px by 70px instead of maintaining the aspect this can be used instead:</p>
<pre class="brush: php; title: ; notranslate">set_post_thumbnail_size( 70, 70, true ); </pre>
<h2>Display thumbnail in a theme</h2>
<p>To add this feature into your theme so that it will display the image on the page, just add this bit of code where you would like the image to be shown within the loop.  You don&#8217;t need to encase it in the image element it will generate everything it needs to display the image.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php the_post_thumbnail(); ?&gt;</pre>
<h2>Adding different sizes</h2>
<p>Sometimes different sized images are required for different pages of a site, here is how to do it.</p>
<pre class="brush: php; title: ; notranslate">if ( add_theme_support( 'post-thumbnails' );
     set_post_thumbnail_size( 70, 70, true ); // default thumbnail size
     add_image_size( 'single-post', 300, 9999 ); // size for post or page image
     add_image_size( 'archive-thumbnail', 30, 30, true  ); // size for archived image.
}</pre>
<p>The above example is for 3 different sized images for the homepage, post page and the archives page.   By setting the single-post to a large number for the height will ensure that the width is 300px while maintaining the aspect ratio of the height.</p>
<p>To get it to display the different image sizes all that needs to be added into the pages code is the name that has been given within the function.</p>
<p><strong>For the post page:</strong></p>
<pre class="brush: php; title: ; notranslate">&lt;?php the_post_thumbnail( 'single-post' ); ?&gt; </pre>
<p><strong>For the archive page:</strong></p>
<pre class="brush: php; title: ; notranslate">&lt;?php the_post_thumbnail( 'archive-thumbnail' ); ?&gt; </pre>
<p>The names don&#8217;t have to be what has been given in the example, they can be called what you like.</p>
<h2>Adding thumbnail to a post or page</h2>
<p>In the WordPress editor there will now be a box on the right hand side, depending on the version of WordPress it will be called something different, from this box or the usual &#8216;add image&#8217; dialogue box you will be able to add a featured image.  The only difference from adding an image to a post normally, is instead of pressing the &#8216;insert into post&#8217; button, there will be one next to it called something like &#8216;use as thumbnail&#8217; (again the wording might be different).  By pressing this button it will add it to the image box on the right and it will be set as the featured image.</p>
<h2>Adding some style</h2>
<p>If you wish to add some styling to these images you can do so by using the default class <strong>.wp-post-image</strong>.  Alternatively you can set your own class, so if you have multiple sizes and want different styles this way can be quite useful:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php the_post_thumbnail( array( 'class' =&gt; 'class-name-here' )); ?&gt;</pre>
<h3>Resource</h3>
<p><a href="http://codex.wordpress.org/Post_Thumbnails">Post Thumbnail &#8211; WordPress Codex </a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/wordpress-post-thumbnail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zebra Stripes in WordPress</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/zebra-stripes-in-wordpress/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/zebra-stripes-in-wordpress/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 15:18:16 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2763</guid>
		<description><![CDATA[Creating a theme where the posts or lists alternate in colour can visually make a blog that little more attractive and can improve its readability as well. So here is a quick way to add a zebra striping effect to a loop within WordPress. The way this works is with a simple counter within php [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a theme where the posts or lists alternate in colour can visually make a blog that little more attractive and can improve its readability as well.  So here is a quick way to add a zebra striping effect to a loop within WordPress.</p>
<p>The way this works is with a simple counter within php that is then called within the loop to add a class depending on if the post count is an odd or even number.  </p>
<p>The counter gets introduced before the start of the loop like so:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php $c = 0 ; ?&gt;
&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;</pre>
<p>The rest of the loop will be created pretty much as normal, the only difference is the addition of class within the container for the post, be that a div or a list item.</p>
<pre class="brush: php; title: ; notranslate">&lt;div class=&quot;&lt;?php echo $c++&amp;1 ? 'even' : 'odd'; ?&gt;&quot;&gt;
... rest of loop  here ....
</pre>
<p>In combination with the counter that is started before the loop this bit of php will use the classes even or odd depending on if the post is counted as an even or odd number.</p>
<p>All that is left to do is style the classes within the css to however you would like them to look.</p>
<pre class="brush: css; title: ; notranslate">.odd {style here}
.even {style here}</pre>
<p>Here is an example of a loop fully coded:</p>
<pre class="brush: php; title: ; notranslate">&lt;ul class=&quot;news&quot;&gt;
   &lt;?php $c = 0 ; ?&gt;
      &lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
         &lt;li class=&quot;&lt;?php echo $c++&amp;1 ? 'even' : 'odd'; ?&gt;&quot;&gt;
            &lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;
            &lt;?php the_excerpt(); ?&gt;
         &lt;/li&gt;
      &lt;?php endwhile; ?&gt;
   &lt;?php else : endif; ?&gt;
&lt;/ul&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/zebra-stripes-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>@font-face</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/font-face/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/font-face/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 12:49:49 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2731</guid>
		<description><![CDATA[@font-face is a css rule that gives designers and developers more freedom when it comes to typography on a website. While there have been advances in this area of design over the past few years with replacement methods such as cufón and sIFR, and other JavaScript and Flash add ons, @font-face is a much simpler [...]]]></description>
			<content:encoded><![CDATA[<p>@font-face is a css rule that gives designers and developers more freedom when it comes to typography on a website. While there have been advances in this area of design over the past few years with replacement methods such as cufón and sIFR, and other JavaScript and Flash add ons, @font-face is a much simpler way to use a non-websafe font. </p>
<p>While this method has been around for many years, it wasn’t until recently that it became supported by the majority or major browsers in one way or another.  It works by having the font stored within the websites directory and locating it through the CSS, rather than the user having to have the  font installed on their computer. So even if a visitor doesn&#8217;t have the font installed they will still see the desired font, provided there is support for the font format within the browser they are viewing it on.</p>
<p>For information on browser compatibility &#038; support:<br />
<a href="http://www.webfonts.info/wiki/index.php?title=@font-face_browser_support">http://www.webfonts.info/wiki/index.php?title=@font-face_browser_support</a></p>
<h2>Using @font-face</h2>
<p>It is quite simple to use this, however as you would expect Internet Explorer doesn&#8217;t play nice, so while other browser are happy to use a true type font (ttf) IE requires an Embedded OpenType font type (EOT). There are many sites that offer online conversions of a font to this format, I personally use Font Squirrels <a href="http://www.fontsquirrel.com/fontface/generator">@fontface Generator </a></p>
<p>Once you have the ETO and a file for other browsers copy them somewhere in your sites directory and add the following  near the top of your css file:</p>
<pre class="brush: css; title: ; notranslate"> @font-face {
  font-family: 'fontname';
  src: url(fontname.eot);
  src: local(' fontname Regular'), url(fontname.ttf) format('truetype');
}</pre>
<p>What the above does is first locate the .eot file for IE and then uses src:local which IE doesn’t understand to find the other font file for other browsers. There is a slight problem with this method, in that  using src:local will mean that it will look in the users directory for the font, so it is best to give the font a slightly different name  so that it won’t find a font called that on the visitors computer.</p>
<p>To style an element with the new font all you need to do is add the name that was given as the font-family within the @font-face, for example:</p>
<pre class="brush: css; title: ; notranslate"> h1 { font-family: fontname, Helvetica, Arial, sans-serif; }</pre>
<p>Like with any fonts used (including websafe ones) it is always best to include others as a fall back, so that if a browser doesn&#8217;t support the font it will still have some alternatives to use and not have to rely on the browser defaults.</p>
<p>As for the HTML, as the styling is all done through the css, the element just needed to be written how it would be normally:</p>
<pre class="brush: xml; title: ; notranslate">&lt;h1&gt; Main Heading Here &lt;/h1&gt;</pre>
<h2>The legal stuff</h2>
<p>Always make sure the font you want to use has a Web-font licence, you can check this on the site that you get your font from, or if it is one that you already have on your computer do a quick search to make sure you have the permission required to use the font on a website.</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/font-face/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Overlay html onto flash</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/overlay-html-onto-a-flash-background/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/overlay-html-onto-a-flash-background/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 13:23:52 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2669</guid>
		<description><![CDATA[Up until today I have never had the need to have an swf file as a background with html over the top of it. I started off by trying what I thought would work, simply creating a layer with the flash in and a layer on top of that with the content in it. That [...]]]></description>
			<content:encoded><![CDATA[<p>Up until today I have never had the need to have an swf file as a background with html over the top of it.   I started off by  trying what I thought would work, simply creating a layer with the flash in and a layer on top of that with the content in it.  That didn’t work, so a search later and 10 or so different methods, all of which failed, I realised what the issue was, most of these solutions were for flashplayer 8 while I was using 10.  </p>
<p>So combining a few solutions for flashplayer 8 together I was able to getting it to work with the technique below. </p>
<h2>Step One –The CSS:</h2>
<p>The code below is how you would expect it to be, there is a container,  a background class and the content for html.   The background and content containers are both absolute positioned one on top of each other using a z-index.</p>
<pre class="brush: css; title: ; notranslate">#flash {
	width:720px;
	height:260px;
	position:relative;
}
#flash .bg {
	width:720px;
	height:260px;
	position:absolute;
	z-index:10;
}
#flash .content {
	width:720px;
	height:260px;
	position:absolute;
	z-index:15;
}
</pre>
<h2>Step Two –The HTML:</h2>
<p>The HTML structure for the containers is also pretty simple:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;flash&quot;&gt;
&lt;div class=&quot;bg&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;content&quot;&gt;  Add content here&lt;/div&gt;
&lt;/div&gt;</pre>
<p><strong>Flash</strong><br />
This is where this method differs from all the ones that I was able to find, it doesn’t need to use embed or a lot of complex coding, all it needs to do is use the wmode parameter like so:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;720&quot; height=&quot;260&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;flash.swf&quot; /&gt;
&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;
&lt;!--[if !IE]&gt; &lt;--&gt;
&lt;object data=&quot;flash.swf&quot; width=&quot;720&quot; height=&quot;260&quot; type=&quot;application/x-shockwave-flash&quot;&gt;
&lt;param name=&quot;pluginurl&quot; value=&quot;http://www.macromedia.com/go/getflashplayer&quot; /&gt;
&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;
&lt;/object&gt;
&lt;!--&gt; &lt;![endif]--&gt;
&lt;/object&gt;</pre>
<p><strong>Here is the finished html code:</strong><br />
The HTML structure for the containers is also pretty simple:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;flash&quot;&gt;
&lt;div class=&quot;bg&quot;&gt;
&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;720&quot; height=&quot;260&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;flash.swf&quot; /&gt;
&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;
&lt;!--[if !IE]&gt; &lt;--&gt;
&lt;object data=&quot;flash.swf&quot; width=&quot;720&quot; height=&quot;260&quot; type=&quot;application/x-shockwave-flash&quot;&gt;
&lt;param name=&quot;pluginurl&quot; value=&quot;http://www.macromedia.com/go/getflashplayer&quot; /&gt;
&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;
&lt;/object&gt;
&lt;!--&gt; &lt;![endif]--&gt;
&lt;/object&gt;
&lt;/div&gt;
&lt;div class=&quot;content&quot;&gt;  Add content here&lt;/div&gt;
&lt;/div&gt;</pre>
<h2>Known Issues</h2>
<p>The only issue I have found so far is that it doesn’t work with IE6, because of needing to use transparency within the flash,  but does with IE7+.</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/overlay-html-onto-a-flash-background/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Removing a links dotted outline</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/removing-a-links-dotted-outline/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/removing-a-links-dotted-outline/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 10:35:10 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2595</guid>
		<description><![CDATA[A lot of designers seem to get annoyed by the dotted line that can appear around links as it isn&#8217;t that attractive and can make a design look messy. Now the first thought would be to remove this dotted line maybe with something like this: The outline has gone, however the problem now is that [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of designers seem to get annoyed by the dotted line that can appear around links as it isn&#8217;t that attractive and can make a design look messy.  Now the first thought would be to remove this dotted line maybe with something like this:</p>
<pre class="brush: css; title: ; notranslate">
a {
   outline: none;
}
</pre>
<p>The outline has gone, however the problem now is that those that use a keyboard to navigate around a site will have no visual aid for what they are currently highlighting. One way around this is to style  :focus  the same as :hover like this:</p>
<pre class="brush: css; title: ; notranslate">a:hover,  a:focus {
   add the styling here
}</pre>
<p>This is a perfectly acceptable method of dealing with the issue, there was always a small part of me that didn&#8217;t like having to take away something that is a built in browser function, it could almost be like taking way the right click for mouse user&#8230;ok maybe not as severe as it is being restyled restyling rather than disabled altogether.</p>
<p>However all is not lost for those that wish to keep the default  browser functions in tack for keyboard users but remove the outline when the mouse click thanks to Patrick H. Lauke and the article he wrote over on 24ways : <a href="http://24ways.org/2009/dont-lose-your-focus">Don&#8217;t Lose Your :focus</a>.  The solution is quite a simple one too, rather than remove the outline completely or on the :focus remove it from the hover and active states instead:</p>
<pre class="brush: css; title: ; notranslate">
a:hover, a:active {
   outline: none;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/removing-a-links-dotted-outline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Horizontally Centered Links</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/horizontally-centered-links/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/horizontally-centered-links/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 07:45:03 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2583</guid>
		<description><![CDATA[There are many ways to create a navigational menu with centered links when there is no set width, however a lot of these need either JavaScript or a CSS hack to make them work. The method used in this tutorial however will not require either of these and will work in all popular browsers. Step [...]]]></description>
			<content:encoded><![CDATA[<p>There are many ways to create a navigational menu with centered links when there is no set width, however a lot of these need either JavaScript or a CSS hack to make them work. The method used in this tutorial however will not require either of these and will work in all popular browsers.</p>
<h3>Step One –The HTML:</h3>
<p>The html is quite simple:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;nav&quot;&gt;
   &lt;ul&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;
&lt;/div&gt;
</pre>
<p>The reason why there needs to be a div  is because the container needs different style information to the unordered list for this technique to work.  As the trick to this comes with the way the different elements work with and against each other to position the links within this containing div.</p>
<h3>Step Two – CSS:</h3>
<p>Lets start first with the containing div:</p>
<pre class="brush: css; title: ; notranslate">
#nav {
   width:100%;
   position:relative;
   overflow:hidden;
}
</pre>
<p>While you can change the width to a fixed size it is usually best to keep it at 100% as even if the menu is contained within another div it will just take up 100% of its container.</p>
<p>Next the unordered list:</p>
<pre class="brush: css; title: ; notranslate">#nav ul {
   float:left;
   position:relative;
   left:50%;
   text-align:center;
}</pre>
<p>Even though we are aiming to have these links centered it is important to include the float left, as this will shrink the ul to the size of its content, meaning that it will position exactly where we tell it to.</p>
<p>Position relative is also important in this as it will allow us to move the list to the right by 50%. However this means that the unordered list (ul) starts at the 50% point of the #nav container,  so the menu is positioned more to the right. To fix this we need to position the list items (li):</p>
<pre class="brush: css; title: ; notranslate">#nav ul li {
   float:left;
   position:relative;
   right:50%;
}</pre>
<p>Again the float left is used to shrink the list items to the size of their content, which will help with sizing not just the li&#8217;s but also the navigations size overall. </p>
<p>The idea behind positioning the li&#8217;s 50% to the right is to counter act the positioning of the unordered list and shift the entire menu along to the left, putting the central point of the menu in the center of the #nav div.  </p>
<p>Put all together the css will look like this:</p>
<pre class="brush: css; title: ; notranslate">
#nav {
   width:100%;
   position:relative;
   overflow:hidden;
}
#nav ul {
   float:left;
   position:relative;
   left:50%;
   text-align:center;
}
#nav ul li {
   float:left;
   position:relative;
   right:50%;
}
</pre>
<p>Once this is in place you can then go in and style the links to fit the design of your site, as this tutorial has just given the minimum css required to make this work instead of also styling the links to look pretty.</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/horizontally-centered-links/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Embedding Flash into HTML</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/embedding-flash-into-html/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/embedding-flash-into-html/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 19:40:16 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=1993</guid>
		<description><![CDATA[HTML4/ XHTML The &#60;embed&#62; tag was deprecated in HTML 4 and XHTML and while most browsers still support it,  your code won&#8217;t validate if it is used.  So if this is an issue for you then the best way to achieve valid code and include an .swf is with the &#60;object&#62; element A lot of [...]]]></description>
			<content:encoded><![CDATA[<h2>HTML4/ XHTML</h2>
<p>The &lt;embed&gt; tag was deprecated in HTML 4 and XHTML and while most browsers still support it,  your code won&#8217;t validate if it is used.  So if this is an issue for you then the best way to achieve valid code and include an .swf is with the &lt;object&gt; element</p>
<p>A lot of tutorials I have read about adding flash into html4 and xhtml usually show this method :</p>
<pre class="brush: xml; title: ; notranslate">
&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;960&quot; height=&quot;500&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;flash.swf&quot; /&gt;
&lt;/object&gt;
</pre>
<p>However the issue with the method above is that it doesn’t work with that wonderful browser known as Internet Explorer.  So to fix that issue this can be used instead:</p>
<pre class="brush: xml; title: ; notranslate">&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; width=&quot;960&quot; height=&quot;500&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;flash.swf&quot; /&gt;
&lt;!--[if !IE]&gt; &lt;--&gt;
&lt;object data=&quot;flash.swf&quot; width=&quot;960&quot; height=&quot;500&quot; type=&quot;application/x-shockwave-flash&quot;&gt;
&lt;param name=&quot;pluginurl&quot; value=&quot;http://www.macromedia.com/go/getflashplayer&quot; /&gt;
&lt;/object&gt;
&lt;!--&gt; &lt;![endif]--&gt;
 &lt;/object&gt;
</pre>
<p>While this looks a lot messier it will display the flash file in Internet Explorer and it will validate.</p>
<h2>HTML5</h2>
<p>HTML5 has actually reintroduced the &lt;embed&gt; tag and while there is much debate about flash&#8217;s future because of HTML5&#8242;s canvas, this is still worth a mention.  So should you be coding using HTML5 here is an easier way to place flash content within your website:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;embed src=&quot;flash.swf&quot; width=&quot;600&quot; height=&quot;900&quot; /&gt;
</pre>
<h2>SWFObject</h2>
<p><a href="http://code.google.com/p/swfobject/" title="SWFObject">SWFObject</a> is a more flexible way of embedding a flash object into html by using an unobtrusive JavaScript method.  One of the major benefits of using SWFObject is that if the flash player is outdated or isn&#8217;t installed, instead of there being a block missing from the site it will display alternative content such as an image, meaning that those that choose not to or can&#8217;t have flash installed can still see something rather than nothing. <a href="http://code.google.com/p/swfobject/" title="SWFObject"><br />
Visit the SWFObject page for more information</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/embedding-flash-into-html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Conditional Comments</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/conditional-comments/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/conditional-comments/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 10:28:20 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=1986</guid>
		<description><![CDATA[What are Conditional Comments? Conditional Comments have been around since Internet Explorer 5 and have been built into every IE browser since then. They simply let you determine which version of IE the user is using and lets you add something to a targeted IE version. This could be anything from an additional bit of [...]]]></description>
			<content:encoded><![CDATA[<h3> What are Conditional Comments?</h3>
<p>Conditional Comments have been around since Internet Explorer 5 and have been built into every IE browser since then.  They simply let you determine which version of IE the user is using and lets you add something to a targeted IE version.  This could be anything from an additional bit of coding such as an extra stylesheet to a little bit of text that you want someone to read should they be using a certain version of Internet Explorer.</p>
<h3>How do they work?</h3>
<p>They work simply by adding a bit of code into a normal html comment, so while IE has been programmed to read these,  other browsers simply read them as a comment and ignore what is inside them. </p>
<p>By specifying a version of IE you can target certain browsers, as what happens is if IE reads the conditional comment to be true it will display it, but if it reads it to be false it will remain hidden within the comment.</p>
<h3>Some Examples:</h3>
<pre class="brush: xml; title: ; notranslate">&lt;!--[if IE 5 ]&gt;
Only IE 5 will see this
&lt;![endif]--&gt;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;!--[if  lt IE 8 ]&gt;
If the IE browser is  less than 8  this will be used
&lt;![endif]--&gt;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;!--[if  gte IE 7 ]&gt;
If the IE browser is 7 or above this will be used
&lt;![endif]--&gt;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;!--[if  lte IE 6 ]&gt;
If the IE browser is  6 or lower this will be used
&lt;![endif]--&gt;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;!--[if (gte IE 6)&amp;(lt IE 8)] &gt;
If the IE browser is greater or equal to 6 but less than 8 this will be used.
&lt;![endif]--&gt;</pre>
<pre class="brush: xml; title: ; notranslate">&lt;!--[if (IE 5)|(IE 7)]  &gt;
If the IE browser is either 5 or 7 this will be used.
&lt;![endif]--&gt;</pre>
<h2>Excluding IE but not other browsers</h2>
<p>While it isn&#8217;t possible to create conditional comments for non-IE browsers using this method, it is possible to exclude IE from using part of the code.    The way to do this is with the following conditional comment:</p>
<pre class="brush: xml; title: ; notranslate">&lt;!--[if !IE]&gt;--&gt;
Tells IE to ignore what is in here, but other browsers will use it
&lt;!--&lt;![endif]--&gt;</pre>
<p>Now hopefully you have noticed that this one is slightly different to the ones used to target IE.  This is because instead of including everything in one comment, there is one comment to open the if statement and another to close it.  What this then does is open up what is written in the middle to be read by all browsers, but IE will ignore it until the conditional statement is closed.  The reason why this has to be different is simply because if the whole condition was within the comment then every browser would ignore it, as other browsers would still treat it as a normal  comment.</p>
<h2>Breakdown of the Operators</h2>
<p>The table below shows the supported features and describes what they do.</p>
<table class="characterhelp">
<tr>
<th width="150px" class="none">Item</th>
<th width="400px" class="none">Description</th>
</tr>
<tr>
<td class="glyph">IE </td>
<td>Internet Explorer, if followed by a number it means that version of iE (eg IE 6)</td>
</tr>
<tr>
<td class="glyph">lt</td>
<td>Less than</td>
</tr>
<tr>
<td class="glyph">lte </td>
<td>Less than or equal to</td>
</tr>
<tr>
<td class="glyph">gt</td>
<td>Greater than</td>
</tr>
<tr>
<td class="glyph">gte</td>
<td>Greater than or equal to</td>
</tr>
<tr>
<td class="glyph">( )</td>
<td>subexpression operator </td>
</tr>
<tr>
<td class="glyph">&#038;</td>
<td>AND operator </td>
</tr>
<tr>
<td class="glyph">|</td>
<td>OR operator</td>
</tr>
<tr>
<td class="glyph">!</td>
<td>NOT operator </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/conditional-comments/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>HTML &amp; CSS comments</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/html-css-comments/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/html-css-comments/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 20:49:38 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2014</guid>
		<description><![CDATA[Comments are simply lines of code that are ignored by browsers. They are useful in that they can let you place notes within the HTML or CSS and are most commonly used for descriptive purposes and reminders, such as where an element closes, separating different sections to make it easier to read through or what [...]]]></description>
			<content:encoded><![CDATA[<p>Comments are simply lines of code that are ignored by browsers.  They are useful in that they can let you place notes within the HTML or CSS and are most commonly used for descriptive purposes and reminders, such as where an element closes, separating different sections to make it easier to read through or what a certain bit of code does.  Comments can also be used to block out part of the code, which could aid in bug fixing as it mean that code can be removed from being read without having to actually delete it.</p>
<h2>HTML Commenting</h2>
<p>HTML comments have an opening and a closing tag, and anything that is between the two tags is included within the comment, meaning that it can span as many lines as it needs to.</p>
<ul>
<li>&lt;!&#8211; Opening Comment</li>
<li>&#8211; &gt; Closing Comment</li>
</ul>
<h3>example of use:</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!-- start of header --&gt;
&lt;div id=&quot;header&quot;&gt;
&lt;img src=&quot;logo.gif&quot; alt=&quot;an example&quot; class=&quot;logo&quot;  /&gt;
&lt;!-- start of nav --&gt;
&lt;ul id=&quot;nav&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;nav link - a good link&quot;&gt;nav link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;nav link - a good link&quot;&gt;nav link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;nav link - a good link&quot;&gt;nav link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;nav link - a good link&quot;&gt;nav link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;!-- close of nav --&gt;
&lt;/div&gt;&lt;!-- close of header --&gt;
</pre>
<h2>CSS</h2>
<p>There isn&#8217;t a difference between how a HTML comment works to how a CSS comment does, really there is only one and that is the syntax that is used.</p>
<ul>
<li>/* Opening Comment</li>
<li>*/ Closing Comment</li>
</ul>
<h3>example of use:</h3>
<pre class="brush: css; title: ; notranslate">/* header info */
#header { width:960px; height:90px; padding:10px 0px;}
#header .logo { width:300px; float:left; }
/* nav info */
ul#nav { width:200px; float:right;}
ul#nav li { padding:5px; background-color:#666666;}
ul#nav li a { color:#FF9900; text-decoration:none; font-weight:bold;}
</pre>
<h2>A few useful ways to use commenting:</h2>
<p>If you are developing a site a good way to keep track of colour values is to add them in a comment at the top of your css, this way if you want to match the colour of some text with a colour used for a border, instead of looking through all the css for the value, you have a reference at the top of the page. </p>
<p>If a group of you are working on a project together but are scattered in different locations it can sometimes be hard to manage what everyone is doing, which could result in the same document getting worked on at the same time by two different people, meaning work will get lost.  So an easy way to make sure this doesn&#8217;t happen is to add a comment to the top of the page you are working on so that other know not to edit it.  Something along the lines of <!-- Helen editing 06/06/10 -->, then once you have finished simply remove the comment and others will know it is safe for them to edit the file.</p>
<p>Again if working in a group commenting is a great way to help with bug fixing, adding comments to the top of a document will let others know what has been done. It can also be good for saying if there is an issue with an element, for example it breaks in a certain browser, so others working will be able to quickly target where the problem is and hopefully come up with a solution to fix it.</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/html-css-comments/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Media Types</title>
		<link>http://webdesignpond.co.uk/tips-tutorials/media-types/</link>
		<comments>http://webdesignpond.co.uk/tips-tutorials/media-types/#comments</comments>
		<pubDate>Fri, 28 May 2010 18:42:31 +0000</pubDate>
		<dc:creator>Helen</dc:creator>
				<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[html & css]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://webdesignpond.co.uk/wdp/?p=2002</guid>
		<description><![CDATA[A useful feature of a stylesheet is that they can change the presentation of a page depending on what device the page is being viewed on. At the moment the most commonly used media types are for screen and print simply because it means that how a site looks on the screen won’t be how [...]]]></description>
			<content:encoded><![CDATA[<p>A useful feature of a stylesheet is that they can change the presentation of a page depending on what device the page is being viewed on.   At the moment the most commonly used media types are for screen and print simply because it means that how a site looks on the screen won’t be how it prints out, so it makes it more user friendly and save on ink, but there are a lot of other media types that can be just as useful for your site.  </p>
<h3>How to apply a media type</h3>
<p>There are a few ways that you could apply a media type to a style set:</p>
<p><strong>External Stylesheet</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;link href=&quot;default.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;  media=&quot;screen&quot;/&gt;</pre>
<p><strong>Inline style sheet </strong></p>
<pre class="brush: css; title: ; notranslate">@media screen{
	#nav { font-family:Arial, Helvetica, sans-serif;}
}
@media print {
	#nav { display:none;}
}</pre>
<p>Imported Stylesheet</p>
<pre class="brush: xml; title: ; notranslate">
&lt;style type=&quot;text/css&quot; media=&quot;print&quot;&gt;
@import &quot;print.css&quot;;
&lt;/style&gt;
</pre>
<h2Media Types</h2>
<p>Below is a list of media types that are currently available to use</p>
<table class="characterhelp">
<tr>
<th width="150px" class="none">Media Type</th>
<th width="550px" class="none">Used For</th>
</tr>
<tr>
<td>all</td>
<td>All media type devices</td>
</tr>
<tr>
<td>aural</td>
<td>Speech and sound synthesizers</td>
</tr>
<tr>
<td>braille</td>
<td>Braille tactile feedback devices</td>
</tr>
<tr>
<td>embossed</td>
<td>Paged Braille printers</td>
</tr>
<tr>
<td>handheld</td>
<td>Small or handheld devices</td>
</tr>
<tr>
<td>print</td>
<td>Printers</td>
</tr>
<tr>
<td>projection</td>
<td>Projected presentations, like slides</td>
</tr>
<tr>
<td>screen</td>
<td>Computer screens</td>
</tr>
<tr>
<td>tty	</td>
<td>Fixed-pitch character grid, like teletypes and terminals</td>
</tr>
<tr>
<td>tv</td>
<td>Television-type devices</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://webdesignpond.co.uk/tips-tutorials/media-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

