<?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>Web Hosting Blog &#187; gradient</title>
	<atom:link href="http://www.heartinternet.co.uk/blog/tag/gradient/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.heartinternet.co.uk/blog</link>
	<description>Web Hosting blog from Heart Internet</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:55:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tutorial: Creating a Gradient background with a Transparent Logo</title>
		<link>http://www.heartinternet.co.uk/blog/2009/11/tutorial-creating-a-gradient-background-with-a-transparent-logo/</link>
		<comments>http://www.heartinternet.co.uk/blog/2009/11/tutorial-creating-a-gradient-background-with-a-transparent-logo/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 12:00:48 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Your Business]]></category>
		<category><![CDATA[Your Website]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[HostPay]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.heartinternet.co.uk/blog/?p=1410</guid>
		<description><![CDATA[We've had a few requests from our reseller hosting customers wanting to know how they can incorporate their own logo into a HostPay installation that uses a gradient as a background image.

I've created a tutorial to show you how easy it is to create your own gradient background and also seamlessly overlay your logo over the top.

For this demonstration I'll be using Adobe Fireworks to create the graphics needed, the same method can be applied using other popular graphics package including The GIMP (Freeware), Adobe Photoshop etc, though the way an effect is achieved may vary from package to package. The final result will create two separate images, a thin 5px width gradient graphic that goes from light to dark blue and a transparent logo.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve had a few requests from our reseller hosting customers wanting to know how they can incorporate their own logo into a HostPay installation that uses a gradient as a background image.</p>
<p>I&#8217;ve created a tutorial to show you how easy it is to create your own gradient background and also seamlessly overlay your logo over the top.</p>
<p>For this demonstration I&#8217;ll be using Adobe Fireworks to create the graphics needed, the same method can be applied using other popular graphics package including <a href="http://www.gimp.org/">The GIMP</a> (Freeware), Adobe Photoshop etc, though the way an effect is achieved may vary from package to package. The final result will create two separate images, a thin 5px width gradient graphic that goes from light to dark blue and a transparent logo.</p>
<p><a href="http://www.heartinternet.co.uk/resources/tutorials/tutorial_gradient_logo/">Click here</a> to view the demo<br />
<a href="http://www.heartinternet.co.uk/resources/tutorials/tutorial_gradient_logo/tutorial_gradient_logo.zip">Click here</a> to download the source files which will include the html, images and the css with full commenting.</p>
<p><span style="font-size: 14px; font-weight: bold;">Creating a Gradient</span></p>
<p><strong>Step one: Create the Canvas</strong><br />
Go to: File &gt; New and create a canvas that measures 800px (Width) x 600px (Height) and give it a white background.</p>
<p><img class="alignnone size-full wp-image-1419" title="grad-step1" src="http://www.heartinternet.co.uk/blog/wp-content/uploads/2009/11/grad-step1.png" alt="grad-step1" width="200" height="143" /></p>
<p><strong>Step two: Create a vector box</strong><br />
Draw a rectangle that measures 800px by 150px so it spans the full width of the canvas.</p>
<p>Next, apply a vertical linear gradient to the vector so the top (lighter) colour has the value of #4E99E0 and the bottom (darker) colour has the value of #0066CC.</p>
<p><img class="alignnone size-full wp-image-1420" title="grad-step2" src="http://www.heartinternet.co.uk/blog/wp-content/uploads/2009/11/grad-step2.png" alt="grad-step2" width="500" height="146" /></p>
<p><strong>Step three: Exporting the gradient</strong><br />
We&#8217;ll be using CSS to tile the background horizontally across the header so we&#8217;ll only need a small 5px slice of the actual gradient image, this way we can save on file size and page load times.</p>
<p>To do this create a new canvas that measures 5px (width) x 150px (height) and copy and paste the gradient into this canvas.</p>
<p><img class="alignnone size-full wp-image-1421" title="grad-step3" src="http://www.heartinternet.co.uk/blog/wp-content/uploads/2009/11/grad-step3.png" alt="grad-step3" width="400" height="200" /></p>
<p>To export/save this graphic, go to: File &gt; Export Wizard &gt; Continue &gt; (Click &#8220;The Web&#8221;) Continue &gt; (Click Exit if it appears) &gt; Then on the &#8220;Format&#8221; option on the drop down click &#8220;PNG 32&#8243; &gt; Click &#8220;Export&#8221; &gt; then save your file as gradient.png</p>
<p><img class="alignnone size-full wp-image-1422" title="grad-step4" src="http://www.heartinternet.co.uk/blog/wp-content/uploads/2009/11/grad-step4.png" alt="grad-step4" width="400" height="318" /></p>
<p><strong>Note:</strong><br />
You can also use the slice tool to export a 5px x 150px slice, make sure you select PNG 32 within the &#8220;Optimize&#8221; window (F8)</p>
<p>You have now created a gradient which we can use as the main background of the header.</p>
<p><span style="font-size: 14px; font-weight: bold;">Creating a transparent logo</span></p>
<p><strong>Step one: Setting up the logo</strong><br />
Open your logo in a new canvas by going to File &gt; Open &gt; (Browse to your logo) and click &#8220;Open&#8221;. Make sure the logo is sat on a transparent background, if your logo sits on a coloured background please see the notes at the bottom of this section.</p>
<p>Set the background colour of the canvas to the &#8220;mid&#8221; colour of the gradient, this is important as it ensures the logo blends seamlessly with the background when used on the website.</p>
<p><img class="alignnone size-full wp-image-1431" title="logo-step2" src="http://www.heartinternet.co.uk/blog/wp-content/uploads/2009/11/logo-step2.png" alt="logo-step2" width="250" height="214" /></p>
<p><strong>Step two: Exporting the logo</strong><br />
Much like the method in exporting the gradient:<br />
Go to: File &gt; Export Wizard &gt; Continue &gt; (Click &#8220;The Web&#8221;) Continue &gt; (Click Exit if it appears) &gt; Then on the &#8220;Format&#8221; option on the drop down click &#8220;PNG 8&#8243; the set it to 256 colours then using the transparency picker click on the background (The &#8220;mid&#8221; gradient colour) of the logo within the preview window. This will then remove that colour from the logo leaving a transparent background. You may notice the edges become slightly &#8220;bitty&#8221; but that&#8217;s fine as these will not be noticeable on the website and will blend nicely with the background.</p>
<p><img class="alignnone size-full wp-image-1435" title="logo-step4" src="http://www.heartinternet.co.uk/blog/wp-content/uploads/2009/11/logo-step4.png" alt="logo-step4" width="450" height="355" /></p>
<p><img class="alignnone size-full wp-image-1434" title="logo-step3" src="http://www.heartinternet.co.uk/blog/wp-content/uploads/2009/11/logo-step3.png" alt="logo-step3" width="500" height="394" /></p>
<p><strong>Note:</strong><br />
If your logo has already got a solid colour as the background &#8211; you can remove this at the export stage when picking the colour of the index transparency. For the best result, make sure you adjust the colour of the gradient to match the background colour you removed from the logo so it blends nicely on your website.</p>
<p>We&#8217;ll be exporting the logo using index transparency and as a PNG8 &#8211; we won&#8217;t use the Alpha transparency option as this renders the edges jagged within IE6. PNG32 will create a grey background in IE6, so it&#8217;s best to avoid that as well.</p>
<p><span style="font-size: 14px; font-weight: bold;">Creating the website</span></p>
<p>Using a few lines of XHTML and CSS i&#8217;ll show you how to create a gradient header for your website and also how to align your logo properly on top.</p>
<p><strong>Step one: The Structure</strong><br />
Below is the basic code to create the basic structure of your website &amp; header.</p>
<p>The #container div will contain all your website elements and can adjusted accordingly. The #header div will contain your logo and have the gradient background style applied to it.</p>
<p>&lt;body&gt;<br />
&lt;div id=&#8221;container&#8221;&gt;<br />
&lt;div id=&#8221;header&#8221;&gt;<br />
&lt;img src=&#8221;logo.png&#8221; alt=&#8221;Your Logo Name&#8221; /&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;</p>
<p><strong>Step two: Styling the header</strong><br />
Add the following into the  &lt; head &gt; of your document.</p>
<p>The following code assumes your images are in the root of your website relative to your homepage/index.html</p>
<p>&lt;style type=&#8221;text/css&#8221;&gt;<br />
body {margin: 0; padding: 0; background: #e4e4e4;}<br />
#container {width: 900px; background: #fff; height: 500px; margin: 0 auto;}<br />
#header {width: 900px; height: 150px; background: #06c url(gradient.png) repeat-x top;}<br />
.logo {padding: 60px 0 0 60px;}<br />
&lt;/style&gt;</p>
<div id="author_info_container" class="author_info_container"><img src="http://www.gravatar.com/avatar.php?gravatar_id=05fc8db2b8ea67a3e2a2f5d7edb2d298" alt="gravatar" /><div class="the_author_name"><span id="author_name_label">Name:</span><span id="author_name">Ben Scott</span></div><div class="the_author_about"><span id="author_about_label">About:</span><span id="author_about">As Senior Web Designer, Ben oversees all of Heart Internet's design, usability, SEO and conversion optimisation. Since joining the team in 2009, Ben has redesigned the Heart Internet website as well as the newsletters, HostPay templates, control panel and much more.</span></div><div class="the_author_posts"><span id="author_posts"><a href="http://www.heartinternet.co.uk/blog/author/ben/">Posts by Ben</a> (92)</span></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.heartinternet.co.uk/blog/2009/11/tutorial-creating-a-gradient-background-with-a-transparent-logo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

