<?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> &#187; HTML</title>
	<atom:link href="http://toolboxdigital.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://toolboxdigital.com</link>
	<description></description>
	<lastBuildDate>Sun, 08 Jan 2012 18:49:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Are Template Clubs Losing The Plot?</title>
		<link>http://toolboxdigital.com/2011/01/are-template-clubs-losing-the-plot/</link>
		<comments>http://toolboxdigital.com/2011/01/are-template-clubs-losing-the-plot/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 16:30:31 +0000</pubDate>
		<dc:creator>Dan Luton</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://toolboxdigital.com/?p=751</guid>
		<description><![CDATA[My opinion on the growing trend amongst template clubs of adding too much "bloat" to templates, and why they should be carefully considered.]]></description>
			<content:encoded><![CDATA[<h4>I&#39;ve long been a fan of the cutting-edge design work produced by many of the top template clubs.</h4>
<p>Rich, unique designs are being published every month for keen club members to download and deploy for their own web projects, making it easy to get an amazing looking website up-and-running in relatively little time.</p>
<p>However, what I&#39;m not a fan of is the way many templates are built these days.</p>
<p><span id="more-751"></span></p>
<p><img alt="Downloading" class="alignnone size-full wp-image-752" src="http://toolboxdigital.com/wp-content/uploads/2011/01/downloading.jpg" title="Downloading" /></p>
<p>A good poke around under the hood is enough to make anyone who works with HTML/PHP/CSS frown at what&#39;s going on &#8211; yes, the code is normally nicely structured, but what is rendered in the browser needs to be carefully considered before using a commercial theme.</p>
<h3>Framework = More Work?</h3>
<p>The trend these days is to use a proprietary theme framework &#8211; these are produced by the clubs and normally the core is shared under a GPL license. All of the club template releases are built on this framework, which offers a bewildering amount of flexibility in layout and features. Often they come complete with an entire management system which is used to configure how everything works. This management can even stretch beyond the template and start managing core features of the CMS itself.</p>
<p>However, the learning curve tends to be steep, with the frameworks being massively complex in their implementation, and core changes to the code are far more difficult than they would be for a more traditionally constructed theme.</p>
<p>Many aspects of the layout can be adjusted within the theme&#39;s setup options, so in a lot of cases, code intervention isn&#39;t really needed &#8211; but what if you need to break free of the framework for something? You have to commit to learning how everything works within the framework, and often even small adjustments are hugely complex given the more rigid nature of the frameworks (which are normally based on a CSS grid system).</p>
<h3>More Features = Less Performance</h3>
<p>Ah, HTTP requests. A real hog of performance, and something you want to really keep to a minimum. By using clever techniques such as CSS sprites, JS and CSS combining, you can massively reduce the number of requests thus speeding things up &#8211; a win for your users, a win for your host, and a win for the performance of the site.</p>
<p>Now, I understand the requirement to separate elements up in order to give flexibility to a theme &#8211; but at what cost? Dozens of individual CSS and Javascript files cannot be a good thing.</p>
<p>Take a nice, lean CMS like WordPress for example. I recently was asked to investigate why the breadcrumb trail wasn&#39;t working (turns out the theme&#39;s breadcrumbs file was pretty much useless) and was horrified at the source output that I saw. Take a look at these stats:</p>
<p>section (a &#39;normal&#39; site would be around 20-100 lines) including:</p>
<ul class="bullet">
<li>233 lines of code for the <strong>&lt;head></strong> section (a ‘normal’ site would be around 20-100 lines) including:</li>
<li>46 lines of embedded CSS</li>
<li>16 separate CSS files</li>
<li>12 separate Javascript files</li>
<li>2 Javascript libraries</li>
<li>Almost 1400 lines of code for the home page</li>
</ul>
<p>Which all add up to the following:</p>
<ul class="bullet">
<li>308 total objects</li>
<li>287 images</li>
<li>300Kb of scripts</li>
<li>A 2,700Kb total page size</li>
</ul>
<p>Of course, I understand that sites will vary in content, plus there were a couple of extra plug-ins installed in this case &#8211; but a quick look at the relevant demo sites paints a pretty similar picture. When you consider that template clubs usually run on some pretty beefy server hardware, they can give a false impression of how the template might perform. Once deployed to a more common shared hosting platform, performance will undoubtedly suffer.</p>
<h3>What can we do about it?</h3>
<p>Template clubs and their projects are obviously a great way for novice developers and webmasters to get started, but many will be oblivious to what goes on under the surface of a theme, blinded by the fancy design and effects.</p>
<p>It&#39;s a shame in some ways, as the popularity of these clubs means that a high percentage of CMS websites will be using them, which could portray the whole platform in a negative light if the performance of a platform is judged on these sites.</p>
<p>My advice: take a look at what&#39;s going on under the hood when using a club template, you might be surprised at what you see. All those features aren&#39;t really free, and are costing you dearly in terms of performance. Also, to get some real stats on your site, run it through a performance checker like <a href="http://websiteoptimization.com/services/analyze/" target="_blank">http://websiteoptimization.com/services/analyze/</a> to see how your own projects perform.</p>
<p>Of course, not all theme providers can be tarred with the same brush &#8211; know of a club producing more streamlined templates without all the fluff? Let us know in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://toolboxdigital.com/2011/01/are-template-clubs-losing-the-plot/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Anatomy of a Newsletter</title>
		<link>http://toolboxdigital.com/2010/01/anatomy-of-a-newsletter/</link>
		<comments>http://toolboxdigital.com/2010/01/anatomy-of-a-newsletter/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 11:12:59 +0000</pubDate>
		<dc:creator>Dan Luton</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Newsletters]]></category>

		<guid isPermaLink="false">http://toolboxdigital.com/?p=418</guid>
		<description><![CDATA[This article describes the basics for turning your newsletter designs into functional newsletters.]]></description>
			<content:encoded><![CDATA[<h4>Newsletter crafting can be pretty straightforward but cumbersome at times due to the way they must be constructed in order to retain the original designs &#8211; even more so if the designs are quite complex and laden with images.</h4>
<p><span id="more-418"></span></p>
<h3>Getting Started</h3>
<p>First off, work from a design so you know how the final construction will look. This can be a full-blown Photoshop mock-up, or a wireframe&#8230;however you make it, just make sure it&#39;s designed as you&#39;d like the final newsletter to appear.</p>
<p>Once your design is ready, you will need to create the framework of the newsletter, using HTML tables and a combination of carefully defined table-cells. You can save some time here by using a visual (WYSIWYG) editor such as Dreamweaver to visually create the layout; this will save a significant amount of time over hand-coding the table layout. In fact, you can use a visual editor to create the whole thing &#8211; but I personally prefer to see exactly what&#39;s going on, so tend to hand-code once the basic structure is defined.</p>
<p><img alt="table-layout" class="size-full" src="http://toolboxdigital.com/wp-content/uploads/2010/01/table-layout.jpg" title="table-layout" /></p>
<p>Note that the table I&#39;ve used here is quite narrow (600px) and centered &#8211; you can use your own dimensions and alignment here, but this arrangement seems to work best for most email clients and display resolutions.</p>
<p>I&#39;ve also left the border active (<strong>border=&quot;1&quot;</strong>) which will help when I add content to the layout. You can disable this later if you do not wish the borders to be displayed in the final newsletter.</p>
<h3>Adding Content</h3>
<p>Once you have your basic structure in place, you&#39;re ready to start adding content (text and images) to the newsletter. For now, don&#39;t worry about the styling; just add the bulk of the text and any images you have to the layout.</p>
<p>If you don&#39;t have final images, use exact-sized placeholders until the graphics are ready. This will help to get the layout exactly right, and show where any fine adjustments to the table layout is needed.</p>
<p>Images should be added using the absolute path to the server where they are stored:</p>
<pre class="brush:html">&lt;img src=&quot;http://mydomain.com/images/header.jpg&quot; alt=&quot;&quot; /&gt;
</pre>
<p>&#8230;this will ensure the images load correctly into the document. Note that many email clients will require user approval before they fully display embedded images &#8211; it is not possible to override this.</p>
<h3>Adding the Style</h3>
<p>This is where most of the time is consumed &#8211; actually adding the inline CSS to the layout in order to get the look to match the design you&#39;ve made. Inline styling offers the best and most widely compatible method to add styling to the newsletter. If you&#39;re comfortable with hand-coding the styles, this is the best way &#8211; but of course you can always use a visual editor&#8230;just keep an eye on the way the styling is added to the document &#8211; some editors (such as Dreamweaver) may define styles in a stylesheet format which won&#39;t work for the newsletter.</p>
<p>The styles must be applied to each and every element that needs to be altered from the default. You can of course apply a global style to the whole container (the main table definition) to set a standard font size/colour/style to start you off:</p>
<pre class="brush:html">&lt;table width=&#39;600px&#39; border=&#39;1&#39; cellspacing=&#39;0&#39; cellpadding=&#39;5&#39; align=&#39;center&#39; style=&#39;font-family: Georgia, &#39;Times New Roman&#39;, Serif; color: #222222; font-size: 13px&gt;
</pre>
<p>This will give you your text style for any text that does not have it&#39;s own definition. Much of the styling information will be applied to things like headers and links:</p>
<pre class="brush:html">&lt;h2 style=&quot;font-size:18px; font-weight:bold; color:#FF3300&quot;&gt;Here&#39;s My Title&lt;/h3&gt;
&lt;p&gt;Check out the following link:&lt;/p&gt;
&lt;a href=&quot;http://www.mylink.com&quot; style=&quot;color:#3F84BA; text-decoration:underline&quot;&gt;My Link&lt;/a&gt;
</pre>
<p>It is necessary to add all styling information in this way. You should also refrain from using shorthand CSS as some email clients will ignore this method of styling, such as:</p>
<pre class="brush:html">&lt;p style=&quot;font: bold 14px/120% Arial,Sans-Serif&quot;&gt;This is my paragraph.&lt;/p&gt;
</pre>
<h3>Viewing the Newsletter in Other Formats</h3>
<p>If your mass-mail system supports a plain-text version of the newsletter, you should take the time to create this alongside your HTML version so that users who cannot view mail in HTML format can still read the email.</p>
<p>If this is not practical or possible, provide a link to the HTML document on your server at the top of the email, this way readers who cannot properly view the newsletter will at least have the option to view the newsletter in their browser, which has a good chance of being rendered as you intended it.</p>
<p><a href="http://www.wickwarbrewing.co.uk/eflyer/december09e60a95f3f443e37f5a47210d9b340a05.html" target="_blank"><img alt="newsletter-example" class="alignnone size-full wp-image-441" src="http://toolboxdigital.com/wp-content/uploads/2010/01/newsletter-example.jpg" title="newsletter-example" /></a><br />
	<span class="caption">The finished example (click to view the actual document in your browser)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://toolboxdigital.com/2010/01/anatomy-of-a-newsletter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

