<?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>Discovery Web Design</title>
	<atom:link href="http://discoverywebdesign.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://discoverywebdesign.com</link>
	<description>Web Design tips, tricks, and hints</description>
	<lastBuildDate>Fri, 24 Jul 2009 14:26:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS tricks for your site</title>
		<link>http://discoverywebdesign.com/2009/06/25/css-tricks-for-your-site/</link>
		<comments>http://discoverywebdesign.com/2009/06/25/css-tricks-for-your-site/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:34:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://discoverywebdesign.com/?p=9</guid>
		<description><![CDATA[There are thousands of sites out there offering tips and tricks for using CSS. But how do you know where that information is coming from? Who says the people writing these “tips” know what they’re talking about? For all you know, it could be someone who has not clue what CSS even stands for, let [...]]]></description>
			<content:encoded><![CDATA[<p>There are thousands of sites out there offering tips and tricks for using CSS. But how do you know where that information is coming from? Who says the people writing these “tips” know what they’re talking about? For all you know, it could be someone who has not clue what CSS even stands for, let alone how to use it effectively.</p>
<p>But that’s not the case with the experts below. They’re all well-known for their mastery of CSS and all that goes along with it. Read on for their tips and tricks with regards to everything from avoiding hacks to understanding the box model.<span id="more-9"></span></p>
<p>Peter-Paul Koch: Avoid CSS Hacks<br />
As web design has progressed, the endlessly nested table has transformed into the endlessly complicated CSS hack. In many cases, CSS hacks solve one bug by exploiting another one; not exactly the most stable way to fix something. When the next version of the browser is released, it might fix neither or both bugs, or it might fix one but not the other. In any case, it’s likely your hack might end up not working, or not being necessary any longer.</p>
<p>Jonathan Snook: Avoid Unnecessary Selectors<br />
To keep your style sheets as short and condensed as possible, avoid repeating yourself by only specifying the minimum number of selectors. In other words, do you really need to specify UL and LI? Why not just specify the UL? The same goes for other elements likely to be nested. Just specify the upper-most level and leave the rest to inherit those styles.</p>
<p>Roger Johansson: Specify a Maximum Width for Em-Based Layouts<br />
Creating an elastic layout that don’t specify a maximum width in anything other than em units is a quick way to make a very uncomfortable site. As your visitors increase the text size, your layout gets wider. But what happens when they increase the size by more than one or two em units? Your layout just gets wider and wider and pretty soon they have to scroll horizontally in order to read an entire line. Specify a maximum width to avoid that problem and make your site more user-friendly.</p>
<p>Trevor Davis: Set a Consistent Base Font Size<br />
By setting your base font size at 62.5%, you end up with a font size of 10 pixels. This makes 1 em equal to 10 pixels. 1.2 em is then equal to 12 pixels. It simplifies font sizing in all of your selectors thereafter.</p>
<p>Dan Cederholm: Use Negative Margins<br />
Using negative margins can greatly simplify your code. Instead of specifying positive margins for a dozen or more elements, why not just specify a negative margin for one? It makes your style sheets shorter and less complex.</p>
<p>Ben Henick: Don’t Add Markup Unless Context Encourages It<br />
When transitioning from table-based layouts, many designers are tempted to add in an abundance of container elements. But CSS isn’t the same as tables. Thinking through your design ahead of time is one way to avoid this, as is focusing on the information first. Try to only use divs and spans for content elements that share a common purpose or classification and are repeated across multiple pages.</p>
<p>Eric Meyer: Use Print-Specific Style Sheets<br />
Forget about creating separate printer-friendly pages for your content. Use CSS to create media-specific styles for your documents instead. Printer-friendly style sheets are easy to create and avoid problems designers used to encounter regarding the regular version and printer-friendly version being slightly different from each other. After all, with this method you’re not touching the page markup at all.</p>
<p>Wolfgang Bartelme: Center with CSS<br />
For people just starting out with CSS, centering an entire website can sometimes seem like an impossibility. But it’s definitely possible and actually relatively easy to achieve.</p>
<p>Trenton Moss: Use Mobile-Specific Stylesheets<br />
With more and more people browsing the web primarily through mobile devices, it’s important to make sure your website is optimized for those visitors. While most handhelds will render pages reasonably well using standard CSS, it’s still not the best user experience on a 3″ screen. Create a separate mobile style sheet to optimize the experience for mobile users.</p>
<p>Chris Coyier: Use the CSS Overflow Property Correctly<br />
There are four different values available for the CSS overflow property: hidden, visible, scroll, and auto. By understanding what each of these does and how each behaves, you open up a lot more options for your site’s layout.</p>
<p>Ethan Marcotte: Create Fluid Grids with CSS<br />
The idea of creating a fluid grid design, especially with CSS, is likely to send shivers down the spines of many web designers. But it is possible, and is definitely preferable to creating them with tables.</p>
<p>Jonathan Snook: Use CSS Shorthand<br />
Using shorthand is another way to simplify and shorten your stylesheets. Instead of declaring separate styles for each margin (margin-left, margin-right, margin-top, margin-bottom), just declare them for all four at one time. The same goes for other elements, such as font, border, or background.</p>
<p>Chris Coyier: Understand the CSS Box<br />
Everything element in CSS is a rectangular box. Padding, margins, height, width and borders all interact with these rectangular boxes. Gaining a real understanding of how these things interact will make life as a designer infinitely easier.</p>
<p>Roger Johansson: Be Wary of Hiding Things With CSS<br />
It’s tempting when you want to hide an element on your page to use “display:none.” The problem with this, though, is that this particular declaration means that the contents within that element are completely hidden—they aren’t printed, displayed, or spoken. This can cause issues for those using screen readers as opposed to viewing your website. It can also cause issues when you’re going to hide something until a user performs a certain action (most likely with JavaScript).</p>
<p>Peter-Paul Koch: Know When to Use Strict Mode or Quirks Mode<br />
Strict mode and quirks mode apply to the two different ways modern browsers use to interpret CSS. By understanding what each one does and then implementing the correct one for your design, you can greatly improve your site’s functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://discoverywebdesign.com/2009/06/25/css-tricks-for-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 must read Wordpress tutorials</title>
		<link>http://discoverywebdesign.com/2009/06/25/10-must-read-wordpress-tutorials/</link>
		<comments>http://discoverywebdesign.com/2009/06/25/10-must-read-wordpress-tutorials/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:30:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://discoverywebdesign.com/?p=6</guid>
		<description><![CDATA[WordPress 2.8 was released yesterday and it has a long list of new features, fixes and enhancements. Here’s a round up of 10 incredibly useful tutorials to learn about how to use the new functionality and enhancements of WordPress 2.8
1. Build a WordPress 2.8 Widget with New Widget API – WPEngineer
http://wpengineer.com/wordpress-built-a-widget/
WPEngineer Michael Preuss walks you [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.8 was released yesterday and it has a long list of new features, fixes and enhancements. Here’s a round up of 10 incredibly useful tutorials to learn about how to use the new functionality and enhancements of WordPress 2.8<span id="more-6"></span></p>
<p>1. Build a WordPress 2.8 Widget with New Widget API – WPEngineer<br />
http://wpengineer.com/wordpress-built-a-widget/<br />
WPEngineer Michael Preuss walks you through the new simpler Widget API in WordPress 2.8 to create a simple widget. Very simple and easy to understand tutorial.</p>
<p>2. The Complete Guide To Creating Widgets in WordPress2.8 – Justin Tadlock<br />
http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28<br />
This is another great resource to learn how to build a widget using the new Widget API by Justin Tadlock.</p>
<p>3. Tutorial on WordPress 2.8 Widget API – Jesse Altman<br />
http://jessealtman.com/2009/06/08/tutorial-wordpress-28-widget-api/<br />
Another easy to understand hello world tutorial on working with new WordPress widget API.</p>
<p>4. Custom Taxonomies in WordPress 2.8 – Justin Tadlock<br />
http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28<br />
If you find categories and tags too restricting for the stuff you write, Justin Tadlock explains how to define your own taxonomies in WordPress 2.8 to label your posts in the way you want.</p>
<p>5. WordPress 2.8 and body_class() function – Nathan Rice<br />
http://www.nathanrice.net/blog/wordpress-2-8-and-the-body_class-function/<br />
WordPress 2.8 supports location-specific classes for body tag with which you can control the looks of almost everything with just CSS.</p>
<p>6. Load JavaScript Files in Footer of Your Theme – Lester Chan<br />
http://lesterchan.net/wordpress/2009/01/26/loading-javascript-in-footer-in-wordpress-28/<br />
Now you can make your WordPress blog faster by loading JavaScript files in the footer. Lester Chan explains how to do that in WordPress 2.8</p>
<p>7. Displaying Author Meta Information in WordPress 2.8 – Zach Dunn<br />
http://buildinternet.com/2009/06/displaying-author-meta-information-in-wordpress-2-8/<br />
WordPress 2.8 include two new functions the_author_meta() and get_the_author_meta() to display information about authors. Zach Dunn explains how to use these new functions in your WordPress theme.</p>
<p>8. the_author_meta() in WordPress Codex<br />
http://codex.wordpress.org/Template_Tags/the_author_meta<br />
The WordPress codex explains the new author meta information methods, its parameters and examples.</p>
<p>9. Handling Plugin Options in WordPress 2.8 – PlanetOzh<br />
http://planetozh.com/blog/2009/05/handling-plugins-options-in-wordpress-28-with-register_setting/<br />
WordPress 2.8 includes interesting register_setting() function that lets plugin authors leave the dirty stuff to WordPress and concentrate on the functionality of plugin.</p>
<p>10 WordPress Proxy Support – WP Engineer<br />
http://wpengineer.com/wordpress-proxysupport/<br />
If you are using WordPress on your local network which is behind a proxy, then now you can easily fetch content from other websites or RSS feeds as WordPress 2.8 requires just a little edition to wp-config.php to work behind a proxy.</p>
<p>If you know of some other nice tutorials on WordPress 2.8, feel free to share them with us.</p>
]]></content:encoded>
			<wfw:commentRss>http://discoverywebdesign.com/2009/06/25/10-must-read-wordpress-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to handle 404 errors properly</title>
		<link>http://discoverywebdesign.com/2009/06/25/how-to-handle-404-errors-properly/</link>
		<comments>http://discoverywebdesign.com/2009/06/25/how-to-handle-404-errors-properly/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:13:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[errors]]></category>
		<category><![CDATA[404]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[A 404 error on the web is what a web server responds with when it is tasked with serving up a resource that it can’t find.
1. It should still look like your website
If you don’t specifically tell your web server how to handle 404 errors, it will serve up a very plain and generic looking [...]]]></description>
			<content:encoded><![CDATA[<p>A 404 error on the web is what a web server responds with when it is tasked with serving up a resource that it can’t find.</p>
<p>1. It should still look like your website<br />
If you don’t specifically tell your web server how to handle 404 errors, it will serve up a very plain and generic looking error page. That just says something like “Not Found – The requested URL was not found on this server.” on a plain white page. This is an unhelpful and rather painful roadblock for a user. A 404 page should look like an error page, but it should still look like your website. If you are using a CMS, this is probably already handled for you. If you have a static site, you can specify a 404 template through your .htaccess file.<span id="more-1"></span></p>
<p>2. Apologize<br />
Nobody is trying to land on your 404. Most likely they came from a bad link either on your own site or out in the wild. They probably aren’t very happy about it, so this is a golden opportunity to apologize and hopefully turn that frown upside down.</p>
<p>3. Search<br />
It’s possible the page they are looking for still exists, it’s just the URL has changed or it was incorrectly typed somewhere. Since your site should already have search anyway, this is a good opportunity to provide that search box front-and-center. This gives the user the opportunity to search for what they were trying to link to and dig up the correct URL for themselves.</p>
<p>4. Give readers useful links<br />
Maybe the page they are linking to isn’t broken, it just doesn’t exist anymore. In addition to search, you may want to dish out some links they will find useful. Perhaps links to the homepage, the archives page, or other pages you already know are commonly visited / popular pages on your site?</p>
<p>5. Way to Contact / Report Error<br />
It is possible a user landing on a 404 page is having some strong emotions about it. They could be very concerned, worried, or they could be down right ticked off. It is a good idea to give that user some way to release, and since you can’t hand them a punching bag, a contact form might do the trick. This is, of course, not only good for them but good for you, as you can learn about the problem in order to fix it or otherwise prevent it from happening again.</p>
<p>6. Automatic Reporting<br />
Having users help report errors for you through a contact form is great, but only a small percentage of users are likely to do that. An alternative is to have your 404 page automatically report the error to you. There are many ways you could do this. A quick-and-dirty way to do it would be to make your 404 page a PHP file, and use the mail function to send an email of the URL that was landed on.</p>
<p>7. Humor<br />
Even serious sites can get away with a little humor on the 404 page. This is definitely a good opportunity to loosen up a little and do something funny.</p>
<p>8. Redirect?<br />
I’m on the fence about this one, but it’s possible to automatically redirect a 404 error to another page. Perhaps the homepage displaying a message about the error? Perhaps a search page with keywords from the URL parsed out?</p>
<p>9. File Size<br />
You might be surprised at the amount of malicious activity that your web server has to deal with. One thing that surprised me a while back was how many requests there were for “weird” files. Things like requesting the favicon in strange subfolders or looking for random images that don’t exist. When these things don’t turn up, the server loads up your 404 page. Needless to say, serving up a full webpage for all these requests adds up to some serious bandwidth. Your best bet is to fight against these malicious requests, but you should also take care to consider the total page size of your 404 page size and reduce it if bandwidth is a major concern.</p>
]]></content:encoded>
			<wfw:commentRss>http://discoverywebdesign.com/2009/06/25/how-to-handle-404-errors-properly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

