<?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>Es Developed - Fresh Website and Graphic Design &#187; HTML</title> <atom:link href="http://esdev.net/tags/html/feed/" rel="self" type="application/rss+xml" /><link>http://esdev.net</link> <description>Weblog</description> <lastBuildDate>Mon, 07 Jun 2010 13:35:21 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Don&#8217;t Let Your Sites Become Victims of Ad Blockers</title><link>http://esdev.net/dont-let-your-sites-become-victims-of-ad-blockers/</link> <comments>http://esdev.net/dont-let-your-sites-become-victims-of-ad-blockers/#comments</comments> <pubDate>Mon, 22 Feb 2010 14:09:34 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[web design]]></category> <category><![CDATA[accessibility]]></category> <category><![CDATA[browsers]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[plugins]]></category><guid
isPermaLink="false">http://esdev.net/?p=3177</guid> <description><![CDATA[
As someone viewing websites on the web, ad-blockers filter out adverts for &#8220;enhancements&#8221;, and a bunch of flashing, ugly advertisements. Not only this, but ad-blockers can help protect you from potentially sneaky and malicious code.
This is why one of the most popular downloads for Firefox is an ad-blocking extension.
However, have you thought about the reverse? [...]]]></description> <content:encoded><![CDATA[<p
style="text-align: center;"><a
href="http://esdev.net/dont-let-your-sites-become-victims-of-ad-blockers/"><img
class="size-full wp-image-3200 aligncenter" title="dont-become-victims-of-blockers-hd" src="http://esdev.net/wp-content/uploads/2010/02/dont-become-victims-of-blockers-hd.jpg" alt="" width="560" height="300" /></a></p><p>As someone viewing websites on the web, ad-blockers filter out adverts for &#8220;enhancements&#8221;, and a bunch of flashing, ugly advertisements. Not only this, but ad-blockers can help protect you from potentially sneaky and malicious code.</p><p>This is why one of the most popular downloads for Firefox is an ad-blocking extension.</p><p>However, have you thought about the reverse? What about the effect ad blockers have on your website or the sites you design for clients?</p><blockquote><p>Is my coding style or design choices limiting what&#8217;s viewable to visitors because it&#8217;s being incorrectly identified as advertising content by ad-blockers?</p></blockquote><h3>Choose Your Class and ID Names Carefully</h3><p>You may reason, &#8220;I don&#8217;t have to worry about ad-blockers because I don&#8217;t have any advertisements on my website&#8221;.</p><p>But do you really have to reason for concern?</p><p>While you may not have a single ad on your site, the names you give your classes and ID&#8217;s matter.</p><p>Classes and ID&#8217;s containing keywords like <em>banner</em>, <em>ban</em>, <em>ad</em>, <em>advertisement</em>, etc may get flagged incorrectly by a visitor&#8217;s ad-blocking plugin.</p><p>Important sections of information could never appear on the screen because of this.</p><p><span
id="more-3177"></span></p><p>Avoid:</p><p><code>&lt;p class="panel <strong>banner</strong>" id="<strong>bannercontent1</strong>"&gt;Real content. Not an advertisement. But still blocked.&lt;/p&gt;</code></p><p>Better:</p><p><code>&lt;p class="panel <strong>section</strong>" id="<strong>section1</strong>"&gt;Real content. Not an advertisement.&lt;/p&gt;</code></p><p>Remember, elements with classes and ID&#8217;s that contain any filtered keywords run a high risk of being blocked. In theory, an ID or class named &#8216;<em>bandaid</em>&#8216; may get filtered as an ad.</p><h3>Safe Choices For Classes and ID&#8217;s</h3><p>What are safe choices for classes and ID&#8217;s?</p><p>While there&#8217;s no way to know exactly what custom keywords people will add to their blocking list, a good rule of thumb would be to look at the keywords that are contained in the default filter list. This list can usually be found in the ad-blocking extension&#8217;s settings.</p><p>Avoid using classes or ID&#8217;s that contain any of the keywords on the filter list.</p><h3>Choose Your Images Carefully</h3><p>You should also pay attention to your choice of images.</p><p>Since ad-blockers cannot actually view the contents of an image, they identify advertisements by relying on both the image filename and image dimensions.</p><h4>Image Filenames and Directories</h4><p>Images that contain banners, ban, ads, advertisement, and so on in their filenames may very well get flagged as an advertisement and get removed.</p><p>You should also be aware of the directory names you choose. For example, using directories that contain words commonly used in banner advertisements are fair game for ad-blockers.</p><h4>Image Dimensions</h4><p>Your images&#8217; dimensions matter. Images that have the same dimensions as common banner sizes run a high risk of getting wrongly blocked.</p><p>Common ad sizes (in pixels):</p><ul><li>728 × 90</li><li>468 × 60</li><li>234 × 60</li><li>180 × 150</li><li>125 × 125</li><li>88 × 31</li><li>120 × 600</li><li>160 × 600</li><li>336 × 280</li><li>300 × 250</li></ul><p><span
class="article_caption">Source: <a
href="http://www.iab.net/iab_products_and_industry_services/1421/1443/1452">http://www.iab.net/iab_products_and_industry_services/1421/1443/1452</a></span></p><h3>If Unsure, Test</h3><p>If you&#8217;re not sure, download an ad-blocking plugin for your browser and test your design before going live.</p> ]]></content:encoded> <wfw:commentRss>http://esdev.net/dont-let-your-sites-become-victims-of-ad-blockers/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Cheat Sheets For Web Designers</title><link>http://esdev.net/cheat-sheets-for-web-designers/</link> <comments>http://esdev.net/cheat-sheets-for-web-designers/#comments</comments> <pubDate>Mon, 14 Sep 2009 11:03:42 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[freebies]]></category> <category><![CDATA[web design]]></category> <category><![CDATA[code]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://esdev.net/?p=2459</guid> <description><![CDATA[
Remember the mottoes you learned when you were a kid: &#8220;Winners don&#8217;t do drugs&#8221;, and &#8220;Cheaters never win&#8221;?
Well, a little cheating never hurt anyone… when it comes to using cheat sheets, that is.
TechPosters has a colossal collection of cheat sheets for just about every program, coding language or OS that uses code or keyboard shortcuts.
Since [...]]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-full wp-image-2464" title="cheat-sheets-for-web-designers-hd" src="http://esdev.net/wp-content/uploads/2009/09/cheat-sheets-for-web-designers-hd.jpg" alt="cheat-sheets-for-web-designers-hd" width="560" height="130" /></p><p>Remember the mottoes you learned when you were a kid: &#8220;Winners don&#8217;t do drugs&#8221;, and &#8220;Cheaters never win&#8221;?</p><p>Well, a little cheating never hurt anyone… when it comes to using cheat sheets, that is.</p><p><a
href="http://posters.msug.vn.ua">TechPosters has a colossal collection of cheat sheets</a> for just about every program, coding language or OS that uses code or keyboard shortcuts.</p><blockquote><p>Since there&#8217;s such a huge list of cheat sheets, let&#8217;s look at some of the useful cheat sheets for web designers.</p></blockquote><h3>HTML</h3><ul><li><a
href="http://posters.msug.vn.ua/2009/08/24/HTML5QuickReferenceGuide.aspx">HTML 5 Quick Reference Guide</a></li><li><a
href="http://posters.msug.vn.ua/2009/07/07/HTML5CheatSheet.aspx">HTML 5 Cheat Sheet</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/XHTMLCheatSheetV103.aspx">XHTML Cheat Sheet v 1.03</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/23/XHTML11HTML401ExtensibleHypertextMarkupLanguage.aspx">XHTML 1.1 and HTML 4.01 Extensible Hypertext Markup Language</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/HTMLHelpSheet.aspx">HTML Help Sheet (HTML 4 and XHTML)</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/06/FORMTAGS.aspx">Form Tags</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CharacterEntityReferencesInHTML4AndXHTML10.aspx">Character Entity References in XHTML 1.0 and HTML 4</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/HTMLSpecialEntityCodes.aspx">HTML &#8211; Special Entity Codes</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/HTMLCommonTags.aspx">HTML Common Tags</a></li></ul><p><span
class="article_caption"><strong>Note</strong>: If you&#8217;re looking for more resources for UTF-8 special entities, check out my earlier post, <a
href="http://esdev.net/most-used-xhtml-character-entities/"><em>Most Used XHTML Character Entities</em></a>.</span></p><p><span
id="more-2459"></span></p><h3>CSS</h3><ul><li><a
href="http://posters.msug.vn.ua/2009/08/24/CCS3QuickReferenceGuide.aspx">CSS3 Quick Reference Guide</a></li><li>Core CSS <a
href="http://posters.msug.vn.ua/2009/03/07/CoreCSSPartI.aspx">Part 1</a> (by Molly E Holzschlag and published by DZone), <a
href="http://posters.msug.vn.ua/2009/03/07/CoreCSSPartII.aspx">Part 2</a>, and <a
href="http://posters.msug.vn.ua/2009/03/07/CoreCSSPartIII.aspx">Part 3</a></li><li><a
href="http://posters.msug.vn.ua/2009/04/01/CSSProperties.aspx">CSS Properties</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/23/CSS2CascadingStyleSheets.aspx">CSS2 Cascading Style Sheets</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CSSShorthandGuide.aspx">CSS Shorthand Guide</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/25/CSSShorthandCheatSheet.aspx">CSS Shorthand Cheat Sheet by Example</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CSSPropertyIndex.aspx">CSS Property Index</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/CSSCheatSheetV2.aspx">CSS Cheat Sheet v2</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/25/CSS2QuickReferenceGuide.aspx">CSS2 Quick Reference Guide</a></li><li><a
href="http://posters.msug.vn.ua/2009/01/23/RGBColourCodes.aspx">RGB Colour Codes</a></li></ul><h3>jQuery</h3><ul><li><a
href="http://posters.msug.vn.ua/2009/03/23/jQuerySelectors.aspx">jQuery Selectors (DZone)</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/jTouchJQueryCheatSheetForIpods.aspx">jTouch &#8211; jQuery Cheat Sheets For iPods and iPhones</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/jQuery12CheatSheet2.aspx">jQuery 1.2 Cheat Sheet 2</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/05/jQuery12.aspx">jQuery 1.2</a></li></ul><p>There are a ton of other cheat sheets for javascript in general, as well as other frameworks like EXT JS, Prototype and an entire category for <a
href="http://posters.msug.vn.ua/CategoryView,category,Mootools.aspx">Mootools</a>.</p><p>These can be found in the general <a
href="http://posters.msug.vn.ua/CategoryView,category,JavaScript.aspx"><em>Javascript Cheat Sheet</em> category</a>.</p><h3><a
href="http://posters.msug.vn.ua/CategoryView,category,PHP.aspx">PHP</a></h3><ul><li><a
href="http://posters.msug.vn.ua/2009/03/07/PHP.aspx">PHP Cheat Sheet (DZone)</a></li><li><a
href="http://posters.msug.vn.ua/2009/03/06/symfonyPHP5FrameworkAdminGeneratorCheatSheet.aspx">Symfony PHP5 Framework &#8211; Admin Generator Cheat Sheet</a></li></ul><h3>Plus Many, Many More</h3><p>There are also tons of other web design cheat sheets for <a
href="http://posters.msug.vn.ua/CategoryView,category,MySQL.aspx">MySQL</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,ASPNET.aspx">ASP.NET</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,Flash.aspx">Flash</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,Silverlight.aspx">Silverlight</a>, <a
href="http://posters.msug.vn.ua/CategoryView,category,XML.aspx">XML</a> and more.</p><p>Another nice thing about the <a
href="http://posters.msug.vn.ua">TechPosters site</a> is that you can subscribe to RSS feeds for each category and know when new cheat sheets are added.</p><h3>Share</h3><p>Do you use any great cheat sheets for web design that are not included here? Where do you get your cheat sheets from?</p><p>Share your thoughts in the comments.</p> ]]></content:encoded> <wfw:commentRss>http://esdev.net/cheat-sheets-for-web-designers/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>HTML 5 Gets More Attention</title><link>http://esdev.net/html-5-gets-more-attention/</link> <comments>http://esdev.net/html-5-gets-more-attention/#comments</comments> <pubDate>Mon, 06 Jul 2009 15:24:44 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[web design]]></category> <category><![CDATA[code]]></category> <category><![CDATA[HTML]]></category><guid
isPermaLink="false">http://esdev.net/?p=2022</guid> <description><![CDATA[With the announcement from the W3C last week that work on the XHTML 2 spec will be drying up after the end of this year, a lot more interest is being shown for HTML 5.
&#60;my2cents&#62;
Personally, I&#8217;m glad. Not glad that XHTML 2 is going to go the way of the dodo, but I think that [...]]]></description> <content:encoded><![CDATA[<p>With the announcement from the W3C last week that <a
href="http://www.w3.org/News/2009#item119">work on the XHTML 2 spec will be drying up after the end of this year</a>, a lot more interest is being shown for HTML 5.</p><pre>&lt;my2cents&gt;</pre><p>Personally, I&#8217;m glad. Not glad that XHTML 2 is going to go the way of the dodo, but I think that having 2 standards would have been a bit defeating.</p><h3>BlueRay vs HD DVD vs XHTML 2 vs HTML 5</h3><p>Remember the BlueRay vs HD-DVD fiasco? There were 2 specs being developed and disc manufacturers were having to either choose to support one or the other, or add extra expense and support both. Then disc manufacturers have to choose either or both techs. Madness.</p><p>So, I am not saying that I think HTML 5 is better than XHTML 2, but that I&#8217;m glad a decision has been made and one spec has been chosen.</p><p>With the additional resources that HTML 5 will be getting, its future looks much brighter. Not to mention browser makers and web designers have one less thing to worry about.</p><pre>&lt;/my2cents&gt;</pre><h3>Start Using HTML 5 Now</h3><p>There are some web apps (okay, Google Wave) that are beginning to use HTML 5 already.</p><p>Now, roll up your sleeves and <a
href="http://www.sitepoint.com/article/html-5-snapshot-2009/">start using HTML 5 now</a> (an interesting article with code examples from SitePoint). This article even explains how to make it work with Internet Explorer &#8212; yes, IE.</p><p>More info on <a
href="http://www.w3.org/2009/06/xhtml-faq.html">the future of XHTML 2 (W3C)</a>.</p> ]]></content:encoded> <wfw:commentRss>http://esdev.net/html-5-gets-more-attention/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Most Used XHTML Character Entities</title><link>http://esdev.net/most-used-xhtml-character-entities/</link> <comments>http://esdev.net/most-used-xhtml-character-entities/#comments</comments> <pubDate>Mon, 01 Jun 2009 11:00:09 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[web design]]></category> <category><![CDATA[code]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[typography]]></category><guid
isPermaLink="false">http://esdev.net/?p=1839</guid> <description><![CDATA[Many symbols have very different meanings in XHTML, even though they may look very similar to one another.
Some common mistakes are using &#8230; (3 periods) instead of the &#38;hellip; entity. Or using an x (letter x) instead of &#38;times; (multiplication symbol).
While WordPress users can use the Insert custom character tool when writing posts, having a [...]]]></description> <content:encoded><![CDATA[<p>Many symbols have very different meanings in XHTML, even though they may look very similar to one another.</p><p>Some common mistakes are using &#8230; (3 periods) instead of the <kbd>&amp;hellip;</kbd> entity. Or using an <em>x</em> (letter <em>x</em>) instead of <kbd>&amp;times;</kbd> (multiplication symbol).</p><p>While WordPress users can use the <em>Insert custom character</em> tool when writing posts, having a nice resource of all the character entities when coding a site can be a big help. It can also help cut down on validation errors (ampersand woes, anyone?).</p><blockquote><p>Here are 4 nice resources listing most/all the XHTML character entities.</p></blockquote><h3><a
href="http://www.digitalmediaminute.com/reference/entity/index.php">XHTML Character Entity Reference (Digital Media Minute)</a></h3><p>Contains all 252 allowed HTML 4 / XHTML 1.0 character entities. Entities can be filtered to show only characters in specific categories such as shapes and arrows, mathematical symbols, international entities, etc.</p><p>The list can also be printed out easily for use as a cheat sheet.</p><h3><a
href="http://entitycode.com/">Entity Code</a></h3><p>Entity Code shows the most common / most used entities and can be filters also to show only certain types (math, currency, etc) of character enties. This makes browsing and finding the right entity easy.</p><h3><a
href="http://www.webstandards.org/learn/reference/charts/entities/">Character Entities in HTML and XHTML (Web Standards Project)</a></h3><p>The <a
href="http://www.webstandards.org">Web Standards Project</a> has a set of very <a
href="http://www.webstandards.org/learn/reference/charts/entities/">accurate and complete resources for character entities</a>.</p><h3><a
href="http://www.cookwood.com/html/extras/entities.html">HTML XHTML Entities (Cookwood)</a></h3><p>Very detailed list of XHTML 1.0 and HTML 4 characters. Includes descriptions of each symbol.</p> ]]></content:encoded> <wfw:commentRss>http://esdev.net/most-used-xhtml-character-entities/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>CSS-Based Layouts: 10 Steps For Success</title><link>http://esdev.net/css-based-layouts-10-steps-for-success/</link> <comments>http://esdev.net/css-based-layouts-10-steps-for-success/#comments</comments> <pubDate>Mon, 30 Mar 2009 11:00:32 +0000</pubDate> <dc:creator>Shawn</dc:creator> <category><![CDATA[web design]]></category> <category><![CDATA[code]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category><guid
isPermaLink="false">http://esdev.net/?p=1423</guid> <description><![CDATA[
I know the title sounds like I&#8217;m trying to pimp weight-loss drugs or a phenomenal exercise routine, but I assure you I&#8217;m not.
Today, I&#8217;ll share 10 secrets basic steps I take when coding a site in CSS—steps that will hopefully get you thinking about your coding process.
The following assumes that you already know how to [...]]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-full wp-image-1455" title="css-layouts-10-steps-hd" src="http://esdev.net/wp-content/uploads/2009/03/css-layouts-10-steps-hd.jpg" alt="css-layouts-10-steps-hd" width="560" height="130" /><br
/> I know the title sounds like I&#8217;m trying to pimp weight-loss drugs or a phenomenal exercise routine, but I assure you I&#8217;m not.</p><blockquote><p>Today, I&#8217;ll share 10 <span
style="text-decoration: line-through;">secrets</span> basic steps I take when coding a site in CSS—steps that will hopefully get you thinking about <em>your</em> coding process.</p></blockquote><p>The following assumes that you already know how to code valid XHTML and CSS.</p><p>This is in no way the only way—this is just how I generally go about it.</p><p><strong>10 basic steps I follow when creating a CSS-based site:</strong></p><ol><li>Finalize your design</li><li>Finish your XHTML before touching your CSS</li><li>Validate your code</li><li>Start with typography</li><li>Structure the main page elements</li><li>Start big and work your way down</li><li>&#8220;Finish&#8221; work</li><li>Test in IE</li><li>Fix inevitable IE bugs</li><li>Optimize your code and do final testing</li></ol><p><span
id="more-1423"></span></p><h3>1. finalize your design</h3><p><img
class="alignleft size-full wp-image-1436" title="dimensions-icon" src="http://esdev.net/wp-content/uploads/2009/03/dimensions-icon.png" alt="dimensions-icon" width="128" height="128" />This is probably the most important step in order to be productive. If you&#8217;re working with a client, make sure you get them to sign off on the project before you start coding the site.</p><p>Even seemingly small changes (from your client&#8217;s point of view) to the  layout may impact your code in a big way.</p><p>I keep a copy of the approved PSD design open in Photoshop. This serves as my reference and lets me grab dimensions and colors.</p><p>I also draw out a rough sketch of the layout on paper so I can jot down element dimensions, hex colors, etc. It also helps me visualize the different div&#8217;s I&#8217;ll need for my layout when I&#8217;m writing my HTML.</p><h3>2. Finish your HTML before touching your CSS</h3><div
id="attachment_1444" class="wp-caption alignleft" style="width: 138px"><a
title="Image Source" href="http://www.sxc.hu/photo/980234"><img
class="size-full wp-image-1444" src="http://esdev.net/wp-content/uploads/2009/03/cart-before-horse.jpg" alt="Don't put this before a horse" width="128" height="128" /></a><p
class="wp-caption-text">Don&#39;t put this before your horse.</p></div><p>Make sure you have all the sections and major (X)HTML code in place before even touching (or thinking about touching) your stylesheet.</p><p>Just like building a house, you have to have a solid foundation laid first. Make sure all your major page sections are accounted for, along with appropriate headings, paragraphs, etc.</p><p>It&#8217;s generally a good idea to keep the HTML structure as simple as possible—avoiding unnecessary div&#8217;s, for example.</p><h3>3. Validate your code</h3><p><img
class="alignleft size-full wp-image-1441" title="html-validate-icon2" src="http://esdev.net/wp-content/uploads/2009/03/html-validate-icon2.png" alt="html-validate-icon2" width="128" height="128" />If you&#8217;re building a house, you not only have to have a foundation first&#8211;it has to be level. Lots of problems later on can be avoided if you take the time to ensure your foundation is good.</p><p>Take the time to make sure your (X)HTML is valid and there are no mistakes. This can save you unnecessary aggro when you start styling.</p><p>I use the <a
href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer add-on for Firefox</a> to quickly validate local HTML files.</p><p>Only after I&#8217;ve completed this, do I start on my CSS layout and styling.</p><h3>4. Start with typography</h3><p><a
title="Image Source" href="http://www.sxc.hu/photo/1090426"><img
class="alignleft size-full wp-image-1443" src="http://esdev.net/wp-content/uploads/2009/03/typography-letter.jpg" alt="typography-letter" width="128" height="128" /></a>Now it&#8217;s time to dig into the CSS.</p><p>I find it useful to first focus on a site&#8217;s typography: fonts, colors, line height, link styles, list styles, etc when the page is nearly a blank slate. Instead of having a bunch of page layout and sections with background colors, I like to start with the typography before moving on to the page structure.</p><p>A CSS reset (<a
href="http://meyerweb.com/eric/tools/css/reset/">Eric Meyer&#8217;s Reset CSS</a>, <a
href="http://developer.yahoo.com/yui/reset/">YUI Reset CSS</a>) can be very useful in these situations. They save lots of time writing code to undo default browser settings.</p><p>I prefer to use a slightly modified version of the one that comes with <a
href="http://projectdeploy.org/">Deploy</a>. Save a copy somewhere of your modified version so you can work from it on future projects.</p><h3>5. Structure the main page elements</h3><p>There are certain main elements most pages have:</p><ul><li>Header</li><li>Main content</li><li>Sidebar(s)</li><li>Footer</li></ul><p><img
class="alignleft size-full wp-image-1452" title="page-elements-icon" src="http://esdev.net/wp-content/uploads/2009/03/page-elements-icon.png" alt="page-elements-icon" width="128" height="128" />I like to take care of these sections first; centering the whole page, giving main elements dimensions, floating sidebars, and the like.</p><p><strong><em>Important</em></strong>: As you work on your CSS styles and especially layout, test in Firefox, Safari or Opera and adjust accordingly to make sure things look right in one of <em>those</em> browsers.</p><p>It&#8217;s also good to check your progress as you go in IE6, but always remember that IE6 will almost always be wrong. You can avoid huge issues in IE6 by fixing those bugs as you go.</p><h3>6. Start big and work your way down</h3><p><a
title="Image Source" href="http://www.sxc.hu/photo/453289"><img
class="alignleft size-full wp-image-1445" title="nesting-dolls" src="http://esdev.net/wp-content/uploads/2009/03/nesting-dolls.jpg" alt="nesting-dolls" width="148" height="124" /></a>Once the major parts of the page are laid out and positioned properly, I work my way down; working on the layout and styling of sub-elements and sections.</p><p>For instance, your header may contain other elements such as a logo, navigation or search field. With the header already sorted, you can start styling the layout of these other elements.</p><h3>7. &#8220;Finish&#8221; work</h3><p><img
class="alignleft size-full wp-image-1457" title="details-icon" src="http://esdev.net/wp-content/uploads/2009/03/details-icon.png" alt="details-icon" width="128" height="128" />&#8220;Finish&#8221; work, in the construction trade, are the fine details and finishing touches that are done toward the end of the project; like trim and molding, paint and so on.</p><p>In web design, I consider finish work to be the finishing touches like: image-replacement (for headings, etc), hover effects for links or navigation, and fine-tuning margins, padding and the like.</p><p>It&#8217;s also a good time to re-validate your code; including your CSS.</p><h3>8. Test in IE</h3><p><img
class="alignleft size-full wp-image-1447" title="test-in-ie-icon" src="http://esdev.net/wp-content/uploads/2009/03/test-in-ie-icon.jpg" alt="test-in-ie-icon" width="128" height="128" />Testing your site in Safari and/or Firefox will make sure your site looks good in 99% of the major browsers—except Internet Explorer. So you will need to test in IE 6/7.</p><p>Again, it can often save you some headaches by checking your page in IE6 every once in a while as you go along. However, in this step, I go back through and check all the IE-related bugs and issues.</p><p>Personally, I test in Firefox and IE6 all through the process; from layout on.</p><h3>9. Fix inevitable IE bugs</h3><p><img
class="alignleft size-full wp-image-1437" title="bugs-icon" src="http://esdev.net/wp-content/uploads/2009/03/bugs-icon.png" alt="bugs-icon" width="128" height="128" />The more you work with IE 6 and 7, the more you will start being able to foresee issues and know how to correct layout bugs more easily. However, let me tell you, there will <em>always</em> be something you will have to fix in IE 6 or 7. So fix the bugs and you can move on.</p><p>Now, I fix IE6 bugs (dropped floats, wonky margins, etc) with some special rules in a separate stylesheet.</p><h3>10. Optimize your code and do final testing</h3><p><img
class="alignleft size-full wp-image-1448" title="optimize-icon" src="http://esdev.net/wp-content/uploads/2009/03/optimize-icon.png" alt="optimize-icon" width="128" height="128" />There are <a
href="http://esdev.net/quick-and-dirty-css-shorthand-tips/">many ways to optimize your CSS code</a> in order the cut down on size&#8211;now&#8217;s a good time to do that.</p><p>Occasionally, when optimizing though, you may get carried away and accidentally remove an important bit or place a rule where another cancels it out. Make sure your pages still display correctly and then re-validate everything.</p><h3>Use what works for you</h3><p>Whether you use the above steps or not, take the time and think about how you code.</p><ul><li>Do I have a set routine that keeps me organized and focused?</li><li>Is the way I code efficient, or could it do with some streamlining?</li><li>Am I needlessly rewriting code that I could (re)use as a starting point on other projects?</li></ul><p>If there&#8217;s something you can change, great. If what you&#8217;re doing works great as is, that&#8217;s great too.</p><ul><li>Can you setup or modify an existing CSS reset of your own and use it to cut down time?</li><li>Can you use standard names for elements and consistently use them in every project?</li><li>Can you create your own list of steps and follow it on your next project?</li></ul><p><em>Bottom line</em>: Use what works for you and the way you work. If what you currently do doesn&#8217;t work, think about what you can do to improve it.</p><h3>Conclusion</h3><p>Again, this is not the only way to code a CSS design—just the way I do it. There are lots of web designers who code differently and many who probably do a better job of it than me.</p><p>What do you think?:</p><ul><li>What steps do you take when coding a CSS-layout?</li><li>How would you order the above steps so it works best for you?</li></ul> ]]></content:encoded> <wfw:commentRss>http://esdev.net/css-based-layouts-10-steps-for-success/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 152/172 queries in 0.103 seconds using disk

Served from: esdev.net @ 2010-07-30 14:39:45 -->