<?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>WordPress Theme Park &#187; CSS Tips</title>
	<atom:link href="http://wpthemepark.com/tags/css-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://wpthemepark.com</link>
	<description>One-Stop location for latest news on wordpress themes</description>
	<lastBuildDate>Thu, 11 Aug 2011 22:40:26 +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>How to properly hide the title of your blog?</title>
		<link>http://wpthemepark.com/2007/07/09/how-to-properly-hide-the-title-of-your-blog.html</link>
		<comments>http://wpthemepark.com/2007/07/09/how-to-properly-hide-the-title-of-your-blog.html#comments</comments>
		<pubDate>Mon, 09 Jul 2007 15:57:11 +0000</pubDate>
		<dc:creator>Sadish</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[Common Theme Issues]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://wpthemepark.com/2007/07/09/how-to-properly-hide-the-title-of-your-blog.html</guid>
		<description><![CDATA[This is one of the most common customizations that people want to do in their wordpress blog.
They want to hide their site&#8217;s title from displaying at their header. It is most probably because their header image already has it as part of the image itself.
Lets take a look at the most common approaches people take, [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of the most common customizations that people want to do in their wordpress blog.</p>
<p>They want to hide their site&#8217;s title from displaying at their header. It is most probably because their header image already has it as part of the image itself.</p>
<p>Lets take a look at the most common approaches people take, for doing this.</p>
<h2>Approach (1) : Delete the blog&#8217;s Title through Options Page</h2>
<p>People go ahead and login to their wordpress, click on the Options and they look at the text box with the label &#8220;Weblog Title&#8221;. They just clear the text in that box and click on &#8220;Update Options&#8221;.<br />
Start from<br />
<a href='http://wpthemepark.com/wp-content/uploads/2007/07/optionspage1.jpg' title='optionspage1.jpg' target='_blank'><img src='http://wpthemepark.com/wp-content/uploads/2007/07/optionspage1.thumbnail.jpg' alt='optionspage1.jpg' /><br/>Click to Zoom!</a><br />
and make it look like<br />
<a href='http://wpthemepark.com/wp-content/uploads/2007/07/optionspage2.jpg' title='optionspage2.jpg' target='_blank'><img src='http://wpthemepark.com/wp-content/uploads/2007/07/optionspage2.thumbnail.jpg' alt='optionspage2.jpg' /><br/>Click to Zoom!</a></p>
<p>Wow ! That seems to work., isn&#8217;t it ?</p>
<p>Wait a minute, lets take a closer look !<br />
As a result of your change, the following undesirable effects were created.</p>
<p><strong>Issue #1 : Search Engines do not see the site&#8217;s title</strong></p>
<p>You only intended your site&#8217;s title to hide from your vistor&#8217;s eyes, but now even search engine&#8217;s can not see your site&#8217;s title.<br />
A site&#8217;s title enclosed in &lt;h1&gt; and &lt;/h1&gt; tags, is one of the main things, search engines look at when they crawl around your site.<br />
If the search engines do not know your site&#8217;s title, how will they display your site as part of any search results.?</p>
<p><strong>Issue #2 : Site Title does not appear in the browser&#8217;s top bar</strong></p>
<p><img src='http://wpthemepark.com/wp-content/uploads/2007/07/no-title-in-the-browser.jpg' alt='no-title-in-the-browser.jpg' class="centered" /><br />
If the user has opened many browser windows or browser tabs, he/she may not be able to find the window/tab that your website is on.</p>
<p><strong>Issue #3 : Site&#8217;s Feeds do not display a title, either</strong></p>
<p>If the user subscribes to your RSS Feeds, they also do not display your site&#8217;s title.<br />
<img src='http://wpthemepark.com/wp-content/uploads/2007/07/no-title-for-feeds.jpg' alt='no-title-for-feeds.jpg' class="centered" /><br />
Some feed reader softwares also reject feeds that do not have a title.</p>
<p>Oh my God! This approach has some serious issues, isn&#8217;t it ?</p>
<h2>Approach (2) : Delete the line from header.php</h2>
<p>Somewhat knowledgeable users open up the header.php in the theme directory. They know what is the line that causes the title to display in the header.<br />
They just look for</p>
<p><code>&lt;h1&gt;&lt;a href=&quot;&lt;?php bloginfo('siteurl');?&gt;/&quot; title=&quot;&lt;?php bloginfo('name');?&gt;&quot;&gt;&lt;?php bloginfo('name');?&gt;&lt;/a&gt;&lt;/h1&gt;</code></p>
<p>and delete the whole line or make it </p>
<p><code>&lt;h1&gt;&lt;/h1&gt;</code></p>
<p>Yes. Now the site&#8217;s title do not appear in their header and they are happy !</p>
<p>Wait, They will still have the Issue #1 as we discussed for Approach #1.</p>
<h2>Approach (3) : Hiding it through CSS Style definition</h2>
<p>If we really think about the problem at hand, it is very simple. We want to hide the site&#8217;s title from the header of the site, as we already have the site&#8217;s title as part of the header image.<br />
We only have to hide it from people browsing the site in the browser, and not from the search engines or feed readers.<br />
Lets take a look at the CSS based solution for this.</p>
<p>Add</p>
<p><code>#header h1 { display:none }</code></p>
<p>at the end of style.css and save it.</p>
<p>Now let&#8217;s refresh the site and see if the title is hidden. It is still showing up? You have to clear your browser&#8217;s cache and refresh the page again.</p>
<p>Ok&#8230;Now it seems to work !</p>
<p>Is there any of the Issues 1, 2 and 3 as we discussed earlier ? </p>
<p>Nope !</p>
<p>Well, may be this is the proper way to hide the site&#8217;s title from the header ?</p>
<p>I believe so !</p>
<p><strong>Disclaimer :</strong></p>
<p>This would work in most of the wordpress themes [at least <a href="http://wprocks.com/free-themes/" title="Sadish's Themes" target="_blank">the ones that I created</a>]. If it does not work in one of my themes, please go to <a href="http://wprocks.com/forums/" title="WordPress Theme Support by Sadish" target="_blank">Support Forums for my themes</a> and if it is someone else&#8217;s theme, please contact the author of that theme.<br />
Commenting on this post for help with your site, is <strong>not recommended</strong>.</p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpthemepark.com/2007/07/09/how-to-properly-hide-the-title-of-your-blog.html/feed</wfw:commentRss>
		<slash:comments>116</slash:comments>
		</item>
		<item>
		<title>Font Sizes and Accessibility</title>
		<link>http://wpthemepark.com/2006/09/18/font-sizes-and-accessibility.html</link>
		<comments>http://wpthemepark.com/2006/09/18/font-sizes-and-accessibility.html#comments</comments>
		<pubDate>Mon, 18 Sep 2006 20:51:16 +0000</pubDate>
		<dc:creator>Sadish</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[WordPress Tips]]></category>

		<guid isPermaLink="false">http://wpthemepark.com/2006/09/18/font-sizes-and-accessibility.html</guid>
		<description><![CDATA[Lets take a closer look at the font-size property in CSS.
You might have seen this following piece of code in some theme&#8217;s style.css file.
 #content h2 { font-size:1.4em;} 
or this
 #content h2 { font-size:14px;} 
or this
 #content h2 { font-size:10pt;} 
What is the difference between all of these ? which one is better ?
In reality, [...]]]></description>
			<content:encoded><![CDATA[<p>Lets take a closer look at the font-size property in CSS.</p>
<p>You might have seen this following piece of code in some theme&#8217;s style.css file.<br />
<code> #content h2 { font-size:1.4em;} </code><br />
or this<br />
<code> #content h2 { font-size:14px;} </code><br />
or this<br />
<code> #content h2 { font-size:10pt;} </code></p>
<p>What is the difference between all of these ? which one is better ?</p>
<p>In reality, there is nothing like &#8216;one is better than the other&#8217;, but it depends more on the context where it is applied.</p>
<p>&#8216;1em&#8217; means the size of the character &#8216;M&#8217; for the given font when the browser displays the page at the normal text size.<br />
(Similarly 1ex = size of character &#8216;X&#8217;)</p>
<p>&#8216;1px&#8217; means 1 pixel size. if your monitor&#8217;s display is set to 800 by 600 resolution, that means it displays 800 pixels horizontally, and 600 pixels vertically.</p>
<p>&#8216;1pt&#8217; means 1 point size. This is a fixed size across all fonts = 1/72 of an inch. Fixed size fonts might be usable in some cases but not for all.</p>
<p><strong>Q : so what are Relative units for font ?</strong></p>
<p>A : something like &#8216;em&#8217;, &#8216;ex&#8217;, &#8216;px&#8217; etc</p>
<p><strong>Q : What are Fixed units for font ?</strong></p>
<p>A : something like &#8216;pt&#8217;, &#8216;<abbr title="Inch">in</abbr>&#8216;, &#8216;<abbr title="Centi Meter">cm</abbr>&#8216;, &#8216;<abbr title="Milli Meter">mm</abbr>&#8216; etc</p>
<p><strong>Q : What is the advantage of having a Relative Size set for a font ?</strong></p>
<p>With every modern browser, you have the capability to change the text size of a given web page you are viewing.<br />
If you are using Firefox, it is available in the toolbar (View > Text Size > Increase ) or in Internet Explorer, it is available in toolbar (View > Text Size > Larger )</p>
<p>If your website&#8217;s CSS defines the page element&#8217;s font-size in relative units (such as em, ex or px), then the browser will show the page in a bigger font size.<br />
else, the page always shows up with the same sized font, no matter what you change in the browser settings.</p>
<p>So, if you want to have a web page, that is readable by those people with minor visual impairment, you should use relative units for the font size.<br />
If you are a theme author, you make sure, your theme uses them as much as possible, so the sites using your theme are accessible to everyone.</p>
<p>Thats all folks, for now.</p>
<p>Further Reading:<br />
1. <a href="http://www.w3.org/QA/Tips/font-size" target="_blank">W3C&#8217;s Tips</a>.<br />
2. <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#length-units" target="_blank">CSS2 Syntax</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wpthemepark.com/2006/09/18/font-sizes-and-accessibility.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remember to Love / Hate Links</title>
		<link>http://wpthemepark.com/2006/08/23/remember-to-love-hate-links.html</link>
		<comments>http://wpthemepark.com/2006/08/23/remember-to-love-hate-links.html#comments</comments>
		<pubDate>Wed, 23 Aug 2006 12:59:11 +0000</pubDate>
		<dc:creator>Sadish</dc:creator>
				<category><![CDATA[CSS Tips]]></category>

		<guid isPermaLink="false">http://wpthemepark.com/2006/08/23/remember-to-love-hate-links.html</guid>
		<description><![CDATA[Ever wondered how to define styles for Hyperlinks ?
Well. There are four different selectors for a hyperlink.
You would normally see this at the top of the stylesheet.
a:link {text-decoration:none;color:#ff0000}
a:visited {text-decoration:none;color:#0000ff;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
The first line defines that normal unvisited links will have &#8216;no underline&#8217;, and will look &#8216;red&#8217; in color.
The second line says when a link is [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how to define styles for Hyperlinks ?</p>
<p>Well. There are four different selectors for a hyperlink.</p>
<p>You would normally see this at the top of the stylesheet.</p>
<p><code>a:link {text-decoration:none;color:#ff0000}<br />
a:visited {text-decoration:none;color:#0000ff;}<br />
a:hover {text-decoration:underline;}<br />
a:active {text-decoration:underline;}</code></p>
<p>The first line defines that normal unvisited links will have &#8216;no underline&#8217;, and will look &#8216;red&#8217; in color.<br />
The second line says when a link is already visited by the user, it should display in &#8216;blue&#8217; color with &#8216;no underline&#8217;.<br />
The third line says if the user is moving the mouse over this link, show an underline.<br />
The fourth one says to do the same thing as the hover, when the user clicks on it. &#8216;active&#8217; depicts that fraction of second that the user actually clicks on the link.</p>
<p>In order for these definitions to work as intended in most browsers, they have to be in the same order as we have defined here.</p>
<p><strong><em>Remember &#8216;LoVe&#8217; should come before &#8216;HAte&#8217;</em></strong><br />
This shortcut I found it first on the book &#8216;Web Standards Solutions&#8217; by <a href="http://simplebits.com">Dan Cederholm</a>.</p>
<p>Thats all folks, for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://wpthemepark.com/2006/08/23/remember-to-love-hate-links.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

