<?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>Hdeya team blog &#187; h1</title>
	<atom:link href="http://www.hdeya.com/blog/category/h1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hdeya.com/blog</link>
	<description>We can make IT</description>
	<lastBuildDate>Sun, 28 Mar 2010 11:28:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Correctly Displaying Your Logo With CSS</title>
		<link>http://www.hdeya.com/blog/2009/02/correctly-displaying-your-logo-with-css/</link>
		<comments>http://www.hdeya.com/blog/2009/02/correctly-displaying-your-logo-with-css/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 19:01:46 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[h1]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[semantic]]></category>

		<guid isPermaLink="false">tag:google.com,2005:reader/item/cc15f811e43ea7fd</guid>
		<description><![CDATA[Every site has a logo, and whether it’s a page filling feature or a small design element, it often forms the primary title feature of your page. This article will show you how to implement a logo using correct semantic markup and simple HTML code, wi...]]></description>
			<content:encoded><![CDATA[<p>Every site has a logo, and whether it’s a page filling feature or a small design element, it often forms the primary title feature of your page. This article will show you how to implement a logo using correct semantic markup and simple HTML code, with all the presentation done via CSS.</p>
<p>It’ll ensure that those browsing your site without images will see a decent alternative, and provide search engines with a correct representation of your page title.<span id="more-109"></span></p>
<p>Let’s start with with HTML code. It needs to be as simple as possible, showing only the name of your site/logo enclosed within header tags and a link:</p>
<div>
<table border="0">
<tbody>
<tr>
<td>
<pre>1</pre>
</td>
<td>
<pre><span>&lt;<span>h1</span>&gt;&lt;<span>a</span> <span>href</span><span>=</span><span>"http://designshack.co.uk"</span>&gt;</span>Design Shack<span>&lt;<span>/</span><span>a</span>&gt;&lt;<span>/</span><span>h1</span>&gt;</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>Now once you have the HTML code in place, it’s simply a case of styling it with some straight forward CSS.</p>
<div>
<table border="0">
<tbody>
<tr>
<td>
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15</pre>
</td>
<td>
<pre>h1 <span>{</span>
	<span>text-decoration</span><span>:</span><span>none</span>;
	<span>border</span><span>:</span>0;
	<span>width</span> <span>:</span> <span>162px</span>;
	<span>height</span> <span>:</span> <span>113px</span>;
	<span>margin</span> <span>:</span> 0;
	<span>padding</span> <span>:</span> 0;
	<span>background</span> <span>:</span> <span>url</span><span>(</span><span>/images/logo.gif</span><span>)</span> <span>no-repeat</span> 0 0;
<span>}</span>

h1 a <span>{</span>
	<span>display</span> <span>:</span> <span>block</span>;
	<span>height</span> <span>:</span> <span>113px</span>;
	<span>text-indent</span> <span>:</span> <span>-9999px</span>;
<span>}</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>This CSS does two main things:</p>
<ul>
<li>It tells the browser to create a certain area for your logo, and apply a background</li>
<li>It moves the actual text to display out of view (9,999 pixels to the left)</li>
</ul>
<p>If someone browses to your site with CSS and images enabled, they’ll see your beautiful logo. If not, the background image won’t display &#8211; but the text indent won’t be applied either &#8211; meaning they’ll see your heading text as normal. Perfect!</p>
<p>It’s a simple but effective way to ensure your logo displays correctly, remains accessible, and is picked up correctly by search engines.</p>
<p><em><strong>ORIGINAL POST</strong></em></p>
<p><a href="http://feedproxy.google.com/~r/designshacklinks/~3/qMhWE_CgC8s/correctly-displaying-your-logo-with-css">http://feedproxy.google.com/~r/designshacklinks/~3/qMhWE_CgC8s/correctly-displaying-your-logo-with-css</a></p>
<p><img src="http://feeds2.feedburner.com/~r/designshacklinks/~4/qMhWE_CgC8s" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hdeya.com/blog/2009/02/correctly-displaying-your-logo-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

