<?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>Kashif Mushtaq &#187; design</title>
	<atom:link href="http://www.kash-if.com/tag/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kash-if.com</link>
	<description>think again!</description>
	<lastBuildDate>Thu, 17 Dec 2009 08:55:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS: Gradient Text Effect</title>
		<link>http://www.kash-if.com/css-gradient-text-effect/</link>
		<comments>http://www.kash-if.com/css-gradient-text-effect/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 03:16:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.kash-if.com/?p=17</guid>
		<description><![CDATA[Do you want to create fancy headings without rendering each heading with Photoshop? Here is a simple CSS trick to show you how to create gradient text effect with a PNG image (pure CSS, no Javascript or Flash). All you need is an empty &#60;span&#62; tag in the heading and apply the background image overlay [...]]]></description>
			<content:encoded><![CDATA[<p class="intro">Do you want to create fancy headings without rendering each heading with Photoshop? Here is a simple CSS trick to show you how to create gradient text effect with a PNG image (pure CSS, no Javascript or Flash). All you need is an empty <code>&lt;span&gt;</code> tag in the heading and apply the background image overlay using the CSS <code>position:absolute</code> property. This trick has been tested on most browsers: Firefox, Safari, Opera, and even Internet Explorer 6. Continue to read this article to find out how.<br />
<span id="more-17"></span></p>
<ul>
<li><a href="http://www.webdesignerwall.com/demo/css-gradient-text/">View <span>Demos</span></a></li>
<li><a title="Download source files" href="http://www.webdesignerwall.com/file/css-gradient-demo.zip">Download <span> Demo ZIP</span></a></li>
</ul>
<h3>Benefits</h3>
<ul>
<li>This is pure CSS trick, no Javascript or Flash. It works on most browsers including IE6 (PNG hack required).</li>
<li>It is perfect for designing headings. You don’t have to render each heading with Photoshop. This will save you time and bandwidth.</li>
<li>You can use on any web fonts and the font size remains scalable.</li>
</ul>
<h3>How does this work?</h3>
<p>The trick is very simple. Basically we are just adding a 1px gradient PNG (with alpha transparency) over the text.</p>
<p class="image"><a href="http://www.webdesignerwall.com/demo/css-gradient-text/"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen1.gif" alt="screenshot" /></a></p>
<h3>The HTML markups</h3>
<pre><code class="html"><span class="tag">&lt;<span class="keyword">h1</span>&gt;</span><span class="tag">&lt;<span class="keyword">span</span>&gt;</span><span class="tag">&lt;/<span class="keyword">span</span>&gt;</span>CSS Gradient Text<span class="tag">&lt;/<span class="keyword">h1</span>&gt;</span></code></pre>
<h3>The CSS</h3>
<p>The key point here is: <code>h1 { position: relative } </code>and <code>h1 span { </code><code>position: absolute }</code></p>
<pre><code class="css"><span class="keyword">h1</span> <span class="rules">{
  <span class="keyword">font</span>:<span class="value"> bold 330%/100% "Lucida Grande"</span>;
  <span class="keyword">position</span>:<span class="value"> relative</span>;
  <span class="keyword">color</span>:<span class="value"> #464646</span>;
}</span>
<span class="keyword">h1</span> <span class="keyword">span</span> <span class="rules">{
  <span class="keyword">background</span>:<span class="value"> url(gradient.png) repeat-x</span>;
  <span class="keyword">position</span>:<span class="value"> absolute</span>;
  <span class="keyword">display</span>:<span class="value"> block</span>;
  <span class="keyword">width</span>:<span class="value"> 100%</span>;
  <span class="keyword">height</span>:<span class="value"> 31px</span>;
}</span></code></pre>
<p><em>That’s it!</em> You are done. <a href="http://www.webdesignerwall.com/demo/css-gradient-text/">Click here</a> to view my demo page.</p>
<h3>Make it work on IE6</h3>
<p>Since IE6 doesn’t render PNG-24 properly, the following hack is required in order to display the transparent PNG (add anywhere in between the <code>&lt;head&gt;</code> tag):</p>
<pre><code class="css">&lt;!--<span class="attr_selector">[if lt IE 7]</span>&gt;

&lt;<span class="keyword">style</span>&gt;
<span class="keyword">h1</span> <span class="keyword">span</span> <span class="rules">{
  <span class="keyword">background</span>:<span class="value"> none</span>;
  filter:<span class="value"> progid:DXImageTransform.Microsoft.AlphaImageLoader(src='gradient.png', sizingMethod='scale')</span>;
}</span>
&lt;/<span class="keyword">style</span>&gt;

&lt;!<span class="attr_selector">[endif]</span>--&gt;</code></pre>
<p><em>This is why <a href="http://www.webdesignerwall.com/general/trash-all-ie-hacks/">we hate IE 6</a>!</em></p>
<h3>jQuery prepend version (for semantic lovers)</h3>
<p>If you don’t want to have the empty <code>&lt;span&gt;</code> tag in the heading, you can use Javascript to prepend the <code>&lt;span&gt;</code> tag. Here is a sample using <a href="http://jquery.com/" target="_top">jQuery</a> prepend method:</p>
<pre><code class="html"><span class="tag">&lt;<span class="keyword">script</span><span class="attribute"> type=<span class="value">"text/javascript"</span></span><span class="attribute"> src=<span class="value">"jquery.js"</span></span>&gt;</span><span class="tag">&lt;/<span class="keyword">script</span>&gt;</span>

<span class="tag">&lt;<span class="keyword">script</span><span class="attribute"> type=<span class="value">"text/javascript"</span></span>&gt;</span>
$(document).ready(function(){

  //prepend span tag to H1
  $("h1").prepend("<span class="tag">&lt;<span class="keyword">span</span>&gt;</span><span class="tag">&lt;/<span class="keyword">span</span>&gt;</span>");

});
<span class="tag">&lt;/<span class="keyword">script</span>&gt;</span></code></pre>
<h3>More samples</h3>
<p>Want  to make <del>Web 2.0</del> glossy text?</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen2.gif" alt="screenshot" /></p>
<p>Literally, you can apply this trick on any solid background color (as long your gradient color is the same as your background color).</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen3.gif" alt="screenshot" /></p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen4.gif" alt="screenshot" /></p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen5.gif" alt="screenshot" /></p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen6.gif" alt="screenshot" /></p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen7.gif" alt="screenshot" /></p>
<p class="image"><a href="http://www.webdesignerwall.com/demo/css-gradient-text/"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen8.jpg" alt="screenshot" /></a></p>
<h3>Pattern / Texture</h3>
<p>You can also apply this trick with a tile background image. Look, here is an example of zebra pattern. So, be creative!</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2008/01/screen9.gif" alt="screenshot" /></p>
<h3>Limitations and more…</h3>
<ul>
<li>This trick is only suitable for solid background color elements. Your gradient color (PNG image) must be the same color as your background color.</li>
<li>IE PNG hack is required if you want it to work on IE 6.</li>
<li>If your gradient image is taller than the heading, the text will not be selectable.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kash-if.com/css-gradient-text-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typographic Contrast and Flow</title>
		<link>http://www.kash-if.com/typographic-contrast-and-flow/</link>
		<comments>http://www.kash-if.com/typographic-contrast-and-flow/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 03:13:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Font]]></category>

		<guid isPermaLink="false">http://www.kash-if.com/?p=16</guid>
		<description><![CDATA[As you have probably know, most online readers don’t read line by line, instead they scan (from one point to another). For this reason, designers create typographic contrast and flow by emphasizing certain text. Contrast is important because not all the content within a page have the same value, some have greater significance than the [...]]]></description>
			<content:encoded><![CDATA[<p class="intro">As you have probably know, most online readers don’t read line by line, instead they scan (from one point to another). For this reason, designers create typographic contrast and flow by emphasizing certain text. Contrast is important because not all the content within a page have the same value, some have greater significance than the others. By creating contrast, you can direct the reader’s attention to the important messages and at the same time enhance the visual appearance. Here are seven basic methods on how you can create typographic contrast.<br />
<span id="more-16"></span></p>
<h3><em>1.</em> Size</h3>
<p>Larger font size indicate higher priority because it draws reader’s attention, therefore this method is commonly applied on headings.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/size-large.gif" alt="large font size" /></p>
<p>On the other hand, you can de-emphasize by using smaller font size.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/size-small.gif" alt="small font size" /></p>
<h3><em>2.</em> Typeface / Classification</h3>
<p>Contrast can be achieved by mixing different typeface classifications. However, due to limited web safe fonts, there are only two main classifications commonly used: serif and sans-serif.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/type-class.gif" alt="type classification" /></p>
<p>Generally, to create a contrast between the headings and the body text, we use serif font for the headings and sans-serif font for the body, or vice versa.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/class-contrast.gif" alt="classification contrast" /></p>
<p>If you want to go beyond the web safe fonts, there are two more options:</p>
<ol>
<li><strong><a href="http://www.mezzoblue.com/tests/revised-image-replacement/" target="_top">CSS image replacement</a></strong>, that is to use CSS to hide the text and replace with a background image.<br />
[css + bg image = static graphic img]</li>
<li><strong><a href="http://www.mikeindustries.com/sifr" target="_top">sIFR</a> (Flash replacement)</strong>, that is to use Javascript and Flash technology to replace the text with the embedded font.<br />
[Javascript+Flash = any font dynamically]</li>
</ol>
<p><em>Note:</em> CSS image replacement or sIFR is not practical for long paragraph, so they are normally used for headings.</p>
<h3><em>3.</em> Color</h3>
<p>Color contrast is a common way to distinguish between navigation, headings, link, and body text.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/color-link.gif" alt="link" /></p>
<p>You can use faded color to indicate something that is disabled or not available.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/faded.gif" alt="faded" /></p>
<p>Sometime you don’t need to make something bigger to get more attention, you can create emphasis by using brighter color, such as red.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/red-color.gif" alt="red color text" /></p>
<p>You can also use color to distinguish individual word within a group of text.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/color-group.gif" alt="color grouped text" /></p>
<p>When small font size combined with lighter tone color, the importance of the text is further de-emphasized.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/least-important.gif" alt="least important" /></p>
<h3><em>4.</em> Cases</h3>
<p>When the same typeface is used for the headings and body text, contrast can be established by changing the case. Uppercase tends to get more attention than lowercase, therefore it is more suitable for headings. The CSS property to transform text to uppercase is <code>text-transform: uppercase</code>.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/case-contrast.gif" alt="case contrast" /></p>
<p><em>Tips:</em> avoid using uppercase in the body text or in long sentence because it will reduce readability.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/uppercase-block.gif" alt="uppercase text block" /></p>
<h3><em>5.</em> Style and Decoration</h3>
<p>One of the common mistakes made by most editors (particularly the Microsoft Word users), is the tendency to use the underline decoration to emphasize certain text. This is a big mistake in web typography. Readers will misinterpret the underlined text as a link because the browser underlines the link by default. So, do not underline any text that is not a link when posting on the web.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/underline-text.gif" alt="underline" /></p>
<p>Instead, you can use italic font style.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/italic.gif" alt="italic" /></p>
<h3><em>6.</em> Weight</h3>
<p>Making certain text heavier weight (bold) can also create emphasis.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/bold.gif" alt="bold" /></p>
<p>Another common mistake is that people tend to bold the entire line of text. By doing so, the emphasis/contrast of the text is lost.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/everything-bold.gif" alt="entire line bold" /></p>
<h3><em>7.</em> Space</h3>
<p>Space plays the most important part in maintaining flow of your design. Good use of space will tell the reader where to start, when to pause, where it ends, and what to do next.</p>
<p>There are various ways to create space:</p>
<ul>
<li><strong>Block break</strong> (<code>padding</code> or <code>margin</code>) is the space in between the block elements.</li>
<li><strong>Paragraph break</strong> (<code>padding</code> or <code>margin</code>) is the space created after the <code>&lt;p&gt;</code> element.</li>
<li><strong>Tracking</strong> (<code>letter-spacing</code>) is the space in between the characters.</li>
<li><strong>Leading</strong> (<code>line-height</code>) is the space in between the lines.</li>
<li><strong>Indentation</strong> (<code>padding</code> or <code>margin</code>) is commonly used for blockquote and list elements.</li>
</ul>
<h3>Conclusion</h3>
<p>Let’s put all these methods together in practice.</p>
<p class="image"><a href="http://www.webdesignerwall.com/wp-content/uploads/2007/12/typographic-contrast.gif"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/12/typographic-contrast-sm.gif" alt="typographic contrast final" /></a></p>
<h3>External Links:</h3>
<ul>
<li> <a href="http://webtypography.net/" target="_top">The Elements of Typographic Style Applied on the Web</a></li>
<li><a href="http://www.yourhtmlsource.com/text/webtypography.html" target="_top">An introduction to font families</a></li>
<li> <a href="http://webstyleguide.com/type/" target="_top">Web Style Guide: Typography</a></li>
<li><a href="http://alistapart.com/topics/design/typography/" target="_top">A List Apart</a></li>
<li><a href="http://files.jeffcroft.com/presentations/fowd_april_2007/JeffCroft_FOWD_Workshop_Elegant_Web_Typography.pdf" target="_top">Elegant Web Typography by Jeff Croft</a> (PDF)</li>
<li><a href="http://www.markboulton.co.uk/articles/detail/five_simple_steps_to_better_typography/" target="_top">Five steps to better typography by Mark Boulton</a></li>
<li><a href="http://www.tomontheweb2.ca/CMX/D4FBD/" target="_top">Typographic Contrast and the web</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kash-if.com/typographic-contrast-and-flow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Design Mini Icons</title>
		<link>http://www.kash-if.com/how-to-design-mini-icons/</link>
		<comments>http://www.kash-if.com/how-to-design-mini-icons/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 03:51:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Photoshop tutorials]]></category>

		<guid isPermaLink="false">http://www.kash-if.com/?p=10</guid>
		<description><![CDATA[Numbers of people have asked me how to design my popular Mini Pixel Icon pack. In fact, they are relatively easy. All you need is just some basic Photoshop skills. Here I will show you how to use the Pencil tool to design pixel icons, and then re-use them to create a full collection. This [...]]]></description>
			<content:encoded><![CDATA[<p class="intro">Numbers of people have asked me how to design my popular <a href="http://www.ndesign-studio.com/resources/mini-pixel-icons/" target="_top">Mini Pixel Icon</a> pack. In fact, they are relatively easy. All you need is just some basic Photoshop skills. Here I will show you how to use the Pencil tool to design pixel icons, and then re-use them to create a full collection. This is the technique that used to create over 320 icons within a day.<br />
<span id="more-10"></span></p>
<p class="btn download"><a href="http://www.webdesignerwall.com/file/photoshop/mini-icons.psd">Download <span>Photoshop file</span></a></p>
<h3><em>1.</em> Create a new document</h3>
<p>In Photoshop, create a new document 14 x 14px size with transparent background.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-1.gif" alt="step 1" /></p>
<h3><em>2.</em> Draw shape outline</h3>
<p>Use the Pencil tool, select 1px brush from the palette. Pick a dark gray color and start drawing the outline of the page icon. To draw a straight line, first click at the starting point, then hold down shift key and click at the ending point.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-2.gif" alt="step 2" /></p>
<p><em>Tips: At any time if you want to erase the pixels, use the Eraser tool, select Pencil mode and 1px brush size.</em></p>
<h3><em>3.</em> Base gradient</h3>
<p>Make a selection of the empty cutout by the Magic Wand tool. Create a new layer. Set your foreground color to light gray and background to white. Use Gradient tool, drag from top corner to lower corner diagonally.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-3.gif" alt="step 3" /></p>
<h3><em>4.</em> Highlight and shadow</h3>
<p>Create a new layer. Draw a 1px white inner top border to create the highlight effect. Then, draw a medium gray inner bottom border.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-4.gif" alt="step 4" /></p>
<h3><em>5.</em> Group all layers</h3>
<p>In the Layers palette, select all layers and press Cmd+G to group all layers in a folder.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-5.gif" alt="step 5" /></p>
<h3><em>6.</em> Draw a pencil</h3>
<p>Again, start drawing the outline first and then fill the inner area with either solid color or gradient. When you are done, group these layers in a separate folder.</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-6.gif" alt="step 6" /></p>
<p><em>Tips: If you want to have consistent color throughout the icon set, store the colors that you have used in the color swatches.</em></p>
<h3><em>7.</em> Re-use them</h3>
<p>Here shows how I re-used the layer groups to create entire collection:</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-7.gif" alt="step 7" /></p>
<h3><em>8.</em> Export for web</h3>
<p>After you’ve done entire set, toggle (invisible / visible) the layer groups and save them for web (Cmd+Alt+Shift+S).</p>
<p class="image"><img src="http://www.webdesignerwall.com/wp-content/uploads/2007/07/mini-icon-8.gif" alt="step 8" /></p>
<p>Too lazy to do this tutorial? You can download  <a href="http://www.ndesign-studio.com/resources/mini-pixel-icons/" target="_top">free mini icon set</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kash-if.com/how-to-design-mini-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
