<?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>Creative Man Studio &#187; Tutorials</title>
	<atom:link href="http://www.creativemanstudio.com/category/blog/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.creativemanstudio.com</link>
	<description>Graphic Design, Marketing &#38; Photography</description>
	<lastBuildDate>Wed, 21 Sep 2011 16:55:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mastering Photoshop Techniques: Layer Styles</title>
		<link>http://www.creativemanstudio.com/blog/mastering-photoshop-techniques-layer-styles/</link>
		<comments>http://www.creativemanstudio.com/blog/mastering-photoshop-techniques-layer-styles/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 12:47:52 +0000</pubDate>
		<dc:creator>Thomas Giannattasio</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=9219</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div>
      <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="" border="0" /><br />
      <a href="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=target&#38;collection=smashing-rss&#38;position=1" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=image&#38;collection=smashing-rss&#38;position=1" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=target&#38;collection=smashing-rss&#38;position=2" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=image&#38;collection=smashing-rss&#38;position=2" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=target&#38;collection=smashing-rss&#38;position=3" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=image&#38;collection=smashing-rss&#38;position=3" border="0" alt="" /></a>
    </div></td></tr></table>
<p>Layer Styles are nothing new. They've been used and abused again and again. Despite their ubiquity, or perhaps because of it, many designers do not yet realize the full potential of this handy menu. Its beauty lies in our ability to create an effect and then copy, modify, export, hide or trash it, without degrading the content of the layer.</p>

<p><a href="http://www.smashingmagazine.com/professional-photoshop-techniques-tutorials/"><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-09.jpg" width="500" height="320" alt="Mastering Photoshop Techniques: Layer Styles" /></a></p>

<p>Below we present, step by step, several practical techniques to help you refine your designs, increase productivity and reduce layer clutter. You will find more useful Photoshop techniques and tutorials in our hand-picked selection, <a href="http://www.smashingmagazine.com/best-of-photoshop-techniques-and-tutorials/">Best of Photoshop</a> on Smashing Magazine.</p>]]></description>
			<content:encoded><![CDATA[<table width="650">
<tr>
<td width="650">
<div style="width:650px;">
      <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="Advertisement in Mastering Photoshop Techniques: Layer Styles" border="0" /><br />
      <a href="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=target&#038;collection=smashing-rss&#038;position=1" ><img src="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=image&#038;collection=smashing-rss&#038;position=1" border="0" alt=" in Mastering Photoshop Techniques: Layer Styles"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=target&#038;collection=smashing-rss&#038;position=2" ><img src="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=image&#038;collection=smashing-rss&#038;position=2" border="0" alt=" in Mastering Photoshop Techniques: Layer Styles"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=target&#038;collection=smashing-rss&#038;position=3" ><img src="http://auslieferung.commindo-media-ressourcen.de/random.php?mode=image&#038;collection=smashing-rss&#038;position=3" border="0" alt=" in Mastering Photoshop Techniques: Layer Styles"  /></a>
    </div>
</td>
</tr>
</table>
<p>Layer Styles are nothing new. They&#8217;ve been used and abused again and again. Despite their ubiquity, or perhaps because of it, many designers do not yet realize the full potential of this handy menu. Its beauty lies in our ability to create an effect and then copy, modify, export, hide or trash it, without degrading the content of the layer.</p>
<p>Below we present, step by step, several practical techniques to help you refine your designs, increase productivity and reduce layer clutter. You will find more useful Photoshop techniques and tutorials in our hand-picked selection, <a href="http://www.smashingmagazine.com/professional-photoshop-techniques-tutorials/">Best of Photoshop</a> on Smashing Magazine.</p>
<p><a href="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/layer-styles-mastery.zip">Download the source files</a> (.zip, 1.6 Mb).</p>
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/fx-complete.jpg" alt="Fx-complete in Mastering Photoshop Techniques: Layer Styles"  /></p>
<h3>The Bump Map Effect</h3>
<p>&#8220;Wait, what?&#8221; you exclaim, &#8220;There&#8217;s no bump map effect in the Layer Styles menu!&#8221; That&#8217;s true, but by combining Pattern Overlay and Bevel and Emboss, we can achieve a textured, bump-mapped surface with a controllable light source.</p>
<p>This technique requires two images: one for texture and color, and the other to serve as a depth map. The depth map needn&#8217;t have any hue because it determines depth based on a composite value, black being the lowest, white the highest. In some cases, you may be able to use the same image for both, but in our example we&#8217;ll use completely different ones.</p>
<h4>Step by Step</h4>
<ol>
<li>We&#8217;ll start by creating our bump map pattern. <strong>Open the <em>diamond-plate.psd</em> file.</strong></li>
<li>Inside you&#8217;ll find a number of white shapes on a black background. <strong>Create a pattern</strong> from this document: Select All <code>(Cmd/Ctrl + A)</code>, then<em> &#8220;Edit&#8221; → &#8220;Define Pattern.&#8221;</em> Name it &#8220;diamond plate bump map&#8221; and click okay.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-02.gif" alt="Bump-step-02 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Creating the diamond plate pattern.</em></li>
<li>Now, <strong>open the <em>start.psd</em> file</strong>.</li>
<li><strong>Repeat step 2</strong> to create a pattern from the &#8220;patchy gray&#8221; layer. This will be used later to add texture to our background.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-04.jpg" alt="Bump-step-04 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Defining the texture pattern.</em></li>
<li>After creating the pattern, <strong>delete the &#8220;patchy gray&#8221; layer</strong>. It&#8217;s no longer needed.</li>
<li>Use the Rectangular Shape tool to create a shape layer about 20 pixels wider and 20 pixels higher than the canvas. Change the color of this layer to a dark, brownish, chromatic gray.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-06.gif" alt="Bump-step-06 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Creating the shape layer for our background.</em></li>
<li>Be sure that the shape layer doesn&#8217;t have any Layer Styles already applied to it (Photoshop will often apply the most recent Layer Style automatically). Then, <strong>begin the new Layer Style by adding a Pattern Overlay</strong>.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-07.jpg" alt="Bump-step-07 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Adding a Pattern Overlay effect.</em></li>
<li><strong>Choose the &#8220;patchy gray&#8221; pattern from the pattern picker, and change the Blend Mode to Soft Light</strong>. This will add the texture to our background layer.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-08b.jpg" alt="Bump-step-08b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-08.gif" alt="Bump-step-08 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Adding a pattern overlay effect.</em></li>
<li>Next, <strong>add a Bevel and Emboss, along with the Texture effect</strong>. This time, change the Texture effect&#8217;s Pattern to the &#8220;diamond plate bump map&#8221; pattern created in step 2. We now have a grungy diamond plate background.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-09b.jpg" alt="Bump-step-09b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-09.gif" alt="Bump-step-09 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Applying the Bevel and Emboss texture effect.</em></li>
<li>As with most Layer Style effects, the default values are rarely ideal. <strong>By tweaking the Bevel Type and Size, Gloss Contour, Highlights, Shadows and Light settings</strong> you can achieve some dramatic results.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-10b.jpg" alt="Bump-step-10b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-10.gif" alt="Bump-step-10 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Tweaking the Bevel and Emboss settings.</em></li>
<li>With a few extra effects, you can shape the background layer even more. The example has a <strong>Gradient Overlay</strong> to simulate reflected light by darkening certain regions of the image.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-11b.jpg" alt="Bump-step-11b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-11.gif" alt="Bump-step-11 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Using the Gradient Overlay to darken some regions.</em></li>
<li>You may notice that the highlights from the Bevel and Emboss filter all seem to have the same value. This is because the Bevel and Emboss effects are very high on the Layer Style&#8217;s stacking order. To darken the highlights that lie outside our main light source, simply <strong>paint a Layer Mask using the Brush tool</strong>.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/bump-step-12.jpg" alt="Bump-step-12 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Painting a mask to increase the appearance of light in the background.</em></li>
</ol>
<p>We now have a textured, bump-mapped background that is completely dynamic; everything about it can be modified easily from within the Layer Styles menu. Consolidating complex imagery into one dynamic layer like this can reduce layer clutter dramatically and allows you (and whoever else may be using the file) to easily find and modify things. Now, let&#8217;s move on to creating our icon.</p>
<h3>3-D Modeling</h3>
<p>By combining some interior effects, we can use the Layer Styles menu to create simulated 3-D objects: great for icons, buttons and other interface objects. We&#8217;ll now model the base of the round icon in the example image using a single layer.</p>
<h4>Step by Step</h4>
<ol>
<li><strong>Begin by creating a circular shape layer with a rich red fill</strong>.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-01.jpg" alt="3d-step-01 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Creating the shape layer for the icon&#8217;s base.</em></li>
<li>As is often the case when modeling a 3-D shape, <strong>let&#8217;s begin by adding a Gradient Overlay to our Layer Style</strong>. A white-to-black Radial-styled gradient set to Linear Burn works best for our implementation. Be sure the white area of the gradient is at the origin.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-02.jpg" alt="3d-step-02 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Adding Gradient Overlay set to Linear Burn.</em></li>
<li>We now have a dramatically shaded sphere with a head-on light source. By <strong>decreasing the opacity of the gradient</strong>, we can flatten the shape to a more concave button.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-03.gif" alt="3d-step-03 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Reducing the Opacity for a subtler effect.</em></li>
<li>Let&#8217;s also move the direction of the light to the upper-left. While leaving the Layer Style menu open, move the mouse over the image itself (the Move Tool icon should appear). Simply <strong>click and drag the epicenter of the gradient to the upper-left of the shape layer</strong>.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-04.jpg" alt="3d-step-04 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Repositioning the gradient within the Layer Styles menu.</em></li>
<li>While Bevel and Emboss may seem like more logical tools, you can often get a cleaner, more customizable beveled look by using a combination of other effects. First, <strong>add a black Inner Glow, set to Multiply</strong>. Adjust the Choke, Size, Opacity and Contour until you have a softened edge inside the shape.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-05b.jpg" alt="3d-step-05b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-05.gif" alt="3d-step-05 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Adding a Glow to darken the edge of the base.</em></li>
<li>Like for any well-rendered spherical surface, we have to add some reflected light in our shadow region. This is easily achieved with the <strong>Inner Shadow effect</strong>. Change the color to white and the Blend Mode to Linear Dodge. Adjust the angle so that it appears in the lower-right of our shape. Tweak the Contour, Distance, Size and Opacity to create a subtler effect.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-06b.jpg" alt="3d-step-06b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-06.gif" alt="3d-step-06 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Adding subtle reflected light using Inner Shadow.</em></li>
<li>To enhance the feeling that the shape is part of the document&#8217;s &#8220;environment,&#8221; we can add some effects to interact with the background. <strong>Drop Shadow</strong> is usually the easiest tool to use for this. Massage the settings until everything feels right.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-07b.jpg" alt="3d-step-07b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-07.gif" alt="3d-step-07 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>A simple Drop Shadow goes a long way.</em></li>
<li>Using the <strong>Outer Glow</strong> effect, we can simulate the reflected red light that our background image would absorb if this were an actual setting. Change the glow&#8217;s color to a darker red, and change the Blend Mode to darken. Again, work with the Size and Opacity settings to create the desired effect. This is one of those effects that, when used correctly, no one should notice because it just looks natural.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-08b.jpg" alt="3d-step-08b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/3d-step-08.gif" alt="3d-step-08 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>A red Glow to add more &#8220;environment.&#8221;</em></li>
</ol>
<p>Please notice that Layer Style gradients can&#8217;t be dithered, which can make them lower quality than their Gradient Layer and Gradient Tool counterparts (<em>— Marc Edwards</em>).</p>
<h3>Diffuse vs. Specular Light</h3>
<p>Now, our icon reflects a simulated <strong>diffuse light</strong>, which gives it the look of a matte-finished surface. If you prefer a glossier appearance, you can easily create a <strong>specular highlight</strong> using (what else?) Layer Styles.</p>
<h4>Step by Step</h4>
<ol>
<li><strong>Duplicate the current shape layer <code>(Cmd/Ctrl + J)</code></strong>.</li>
<li><strong>Clear the new layer&#8217;s Layer Styles</strong>: right-click the layer in the Layers palette and select &#8220;Clear Layer Style.&#8221;</li>
<li>We also need to modify the shape of the layer to give the reflected light a sharper edge. Using the Direct Selection Tool (A), select the shape path in the layer&#8217;s vector mask. Copy it <code>(Cmd/Ctrl + C)</code> and paste it <code>(Cmd/Ctrl + V)</code> above the current path. Change this path&#8217;s mode to Subtract from shape area <em>(-)</em>. Then move the shape down and to the right to create a crescent shape. You may also want to make the negative shape larger to create a more natural inside curve: simply Free Transform <code>(Cmd/Ctrl + T)</code> and then scale the shape up.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-03.jpg" alt="Spec-step-03 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Modifying the shape of the specular highlight.</em></li>
<li>Because we need this layer only for its Layer Styles, we can <strong>set its Fill Opacity to 0%</strong>.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-04.gif" alt="Spec-step-04 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Dropping the layer&#8217;s fill to 0%.</em></li>
<li>We also want this layer to inherit the Layer Styles of the underlying layer, so <strong>create a Clipping Mask on the new layer <code>(Cmd/Ctrl + Option + G)</code></strong>.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-05.gif" alt="Spec-step-05 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Creating a Clipping Mask to inherit effects.</em></li>
<li>Now, <strong>begin the Layer Style with a Gradient Overlay</strong>. Use the default black-to-white gradient, and set the Blend Mode to Screen. Knock the Opacity down to about 50%, and change the angle to about 115°. You may need to change the positioning of the gradient, which you can do by clicking and dragging inside the document window, just as you did in the 3-D modeling section.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-06b.jpg" alt="Spec-step-06b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-06.gif" alt="Spec-step-06 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Setting the Gradient Overlay to Screen.</em></li>
<li>This is a good start for the highlight, but it still looks somewhat unnatural. Using a transparent inside stroke, we can shrink the perimeter of the interior effects. <strong>Add a Stroke effect to the layer and drop its opacity to 0%</strong>. Change the position to Inside, and work with the size slider until the highlight begins about where the darker inner glow ends on the underlying layer (the example image uses 5 pixels).
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-07b.jpg" alt="Spec-step-07b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-07.gif" alt="Spec-step-07 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Using a 0% Inside Stroke to shrink the perimeter of interior effects.</em></li>
<li>To add a more dynamic look to your highlight, you can <strong>add a white Inner Shadow set to Screen</strong> with a custom contour. Tweak the distance and size settings to finish off the effect.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-08b.jpg" alt="Spec-step-08b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/spec-step-08.gif" alt="Spec-step-08 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>The Inner Shadow creates a more dynamic specular reflection.</em></li>
</ol>
<h3>X-Ray Vision</h3>
<h4>Step by Step</h4>
<p>To create the die-cut type inside our icon, we could turn the text layer into a shape layer and use the paths to mask away areas from the base. However, this would result in degenerated content; we would no longer be able to modify the type. Instead, we&#8217;ll simulate a mask using the <strong>Knockout Blending Option</strong>. This will also allow us to apply custom effects to the cut-out area.</p>
<ol>
<li><strong>Create a new Type Layer with the text &#8220;fx&#8221;</strong>, and position it within the circular base. The example uses 120 point Garamond Bold Italic.</li>
<li><strong>Drop the Fill Opacity to 100%.</strong></li>
<li><strong>Begin your Layer Style by adding an Inner Shadow</strong>. Increase the size, and increase the opacity to about 90%. You may also want to modify the distance and contour to your liking.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-03.jpg" alt="Xray-step-03 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>The beginnings of the die-cut effect.</em></li>
<li>We now have the beginnings of a die-cut effect, except that the text still shows the base below it. To fix this, <strong>go to the Blending Options section in the Layer Styles menu. Change the Knockout from None to Shallow</strong> (this setting samples pixels from the layer directly beneath the current layer&#8217;s group). Because our text layer doesn&#8217;t belong to a layer group, it samples instead from the Background layer. (Using a Deep Knockout would always sample from the Background layer, regardless of the layer&#8217;s group.)
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-04b.jpg" alt="Xray-step-04b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-04.gif" alt="Xray-step-04 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Shallow Knockout samples pixels from the layer directly beneath the current layer&#8217;s group.</em></li>
<li>To get the text layer to sample from our diamond plate layer, <strong>start by clicking &#8220;Okay&#8221; to close the Layer Style menu. Select the text layer and both of the buttons that make up the base, and group the layers <code>(Cmd/Ctrl + G)</code>.</strong> As you can see, the &#8220;fx&#8221; shapes are now drawing pixels from the textured layer directly below the new layer group.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-05.jpg" alt="Xray-step-05 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Grouping the icon so that the Knockout samples from the diamond plate layer.</em></li>
<li>The knockout effect is very convincing, but the type still feels detached from the base. Let&#8217;s add a beveled effect to simulate the surface quality of the base. <strong>Start by adding an outside Stroke with a size of 2; then drop the opacity to 0%.</strong> This doesn&#8217;t achieve anything but is necessary for the next step.</li>
<li><strong>Now add a Bevel and Emboss effect. Change the Style to Stroke Emboss and Technique to Chisel Hard.</strong> This will apply the bevel&#8217;s lighting effects within the stroke area created in the step above. Modify the settings to achieve a subtle and smooth edge.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-07b.jpg" alt="Xray-step-07b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-07.gif" alt="Xray-step-07 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Adding a Stroke Emboss.</em></li>
<li>Let&#8217;s take the bevel one step further by adding a thin specular highlight to the bottom-right edges of the shape. <strong>We can use a white Drop Shadow effect, set to Screen, to add a bright highlight just at the edge of the bevel.</strong> You&#8217;ll want to modify the distance and size to give the highlight a sharp edge.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-08b.jpg" alt="Xray-step-08b in Mastering Photoshop Techniques: Layer Styles"  /><br />
<img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-08.gif" alt="Xray-step-08 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Adding a thin specular highlight using a Drop Shadow.</em></li>
<li>Finish off the Layer Style with more shading within the die-cut letters by <strong>adding a simple black-to-white Gradient Overlay, set to Multiply</strong>.
<p><img src="http://media.smashingmagazine.com/wp-content/uploads/images/photoshop-mastery-techniques/xray-step-09.jpg" alt="Xray-step-09 in Mastering Photoshop Techniques: Layer Styles"  /><br />
<em>Finishing off the die-cut.</em></li>
</ol>
<h3>Quick Tips</h3>
<p>Despite frequent misuse, the Layer Styles menu really is a powerful tool that every designer should learn to work with. Not only does it provide a level of speed and control not easily found through other means, but it provides invaluable flexibility. Our example shows how a multi-dimensional icon and a completely dynamic background can be consolidated within four simple Shape layers, allowing them to be easily modified, reused and repurposed throughout your designs. Below are a few extra tips to remember when working on your next project.</p>
<h4>Effects Stacking Order</h4>
<p>You may have noticed sometimes that an effect isn&#8217;t visible when another effect is being used. For example, a Color Overlay seems to override a Gradient Overlay. This is because of the Layer Styles Stacking Order. Just as with the Layer&#8217;s Palette, one layer will cover another that is lower down in the stacking order. Unfortunately, the Layer Styles menu doesn&#8217;t allow you to rearrange the order of effects. One way around this (even if you sacrifice the ability to edit) is to use Create Layers, which turns all of your Layer Style effects into actual layers that you can move.</p>
<p><strong>Interior Effects Stacking Order:</strong></p>
<ul>
<li>Stroke</li>
<li>Bevel and Emboss</li>
<li>Inner Shadow</li>
<li>Innger Glow</li>
<li>Satin</li>
<li>Color Overlay</li>
<li>Gradient Overlay</li>
<li>Pattern Overlay</li>
</ul>
<p><strong>Exterior Effects Stacking Order:</strong></p>
<ul>
<li>Stroke</li>
<li>Outer Glow</li>
<li>Drop Shadow</li>
</ul>
<h4>Non-Color-Specific Styles</h4>
<p>Though not always possible, you may want to use black, white and grays for your effects. Using monochromatic colors in conjunction with the proper Blend Mode allows you to create styles that are non-color-specific, meaning you can modify the color of the actual layer, and your Layer Style will update appropriately.</p>
<h4>Scaling Effects</h4>
<p>There may be times when you&#8217;ve created a Layer Style that looks great at the original size, but when the shape is increased or decreased, your beautiful style is destroyed. Fortunately, Photoshop provides a method to adjust styles that are out of whack. Simply choose <em>Layer → Layer Style → Scale Effects</em>, and then input the percentage you need.</p>
<h4>Inconspicuous Menu Options</h4>
<p>A number of hidden commands are available to you from within the Layer Styles menu. Depending on the effect, you will have access to either the Hand tool or the Move tool by simply mousing over the document window. The Hand tool allows you to move the document around just as you would outside the Layer Styles menu, and the Move tool repositions the current effect and updates the settings automatically. When using the Move tool, you can still access the Hand tool by holding the space bar. While using either of the tools, you can zoom in and out by holding <code>Space + Cmd</code> or <code>Space + Option</code> respectively. Don&#8217;t forget, as with most other menus in Photoshop, holding &#8220;Option&#8221; will change the &#8220;Cancel&#8221; button to a &#8220;Reset&#8221; button, allowing you to undo any changes.</p>
<p><em>Thanks to Marc Edwards and Ricardo Gimenes for their assistance in editing the article.</em></p>
<p><em>(al)</em></p>
<hr />
<p><small>© Thomas Giannattasio for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2011.</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/mastering-photoshop-techniques-layer-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photo Retouching Tips And Tricks In Photoshop</title>
		<link>http://www.creativemanstudio.com/blog/photo-retouching-tips-and-tricks-in-photoshop/</link>
		<comments>http://www.creativemanstudio.com/blog/photo-retouching-tips-and-tricks-in-photoshop/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 11:40:40 +0000</pubDate>
		<dc:creator>Dirk Metzmacher</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=87270</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt="" /></a></div></td></tr></table><p>Two weeks ago we <a href="http://www.smashingmagazine.com/2011/03/09/useful-photoshop-tips-and-tricks-for-photo-retouching/">published</a> the first part of Photoshop tips and tricks for photo retouching. Today, we'll be presenting the rest of the article. We hope that these techniques will be quite useful for your workflow. You may know some of them, but hopefully not all of them. We have had articles on various tools in Adobe Photoshop but this one is focused more on the techniques rather than the tools provided. Please note that all images used in this article were purchased and are used according to their licenses.</p><p><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/03/orton-effect-screenshot.jpg" alt="The Orton Effect" width="500" height="298" /></a></p> <p>If you want to redefine the foreground and background colors, use the Eyedropper tool to select the foreground color, and then switch the position with the background color, maybe by using the shortcut <code>X</code>, and pick up the next color. But there is an easier way.</p>]]></description>
			<content:encoded><![CDATA[<table width="650"><tr><td width="650"><div style="width:650px;"> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="Advertisement in Photo Retouching Tips And Tricks In Photoshop" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt=" in Photo Retouching Tips And Tricks In Photoshop"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt=" in Photo Retouching Tips And Tricks In Photoshop"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt=" in Photo Retouching Tips And Tricks In Photoshop"  /></a></div></td></tr></table><p>Two weeks ago we <a href="http://www.smashingmagazine.com/2011/03/09/useful-photoshop-tips-and-tricks-for-photo-retouching/">published</a> the first part of Photoshop tips and tricks for photo retouching. Today, we&#8217;ll be presenting the rest of the article. We hope that these techniques will be quite useful for your workflow. You may know some of them, but hopefully not all of them. We have had articles on various tools in Adobe Photoshop but this one is focused more on the techniques rather than the tools provided. Please note that all images used in this article were purchased and are used according to their licenses.</p><p>Here is a short overview of the techniques we&#8217;ll be covering in this follow-up:</p><ul><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique1">Defining Colors</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique2">Controlling Folders</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique3">Split-Toning Effect</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique4">Flexible Vignette</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique5">Skin Retouching In Camera Raw</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique6">Setting Lights</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique7">Distinguished Paleness</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique8">Dodge And Burn Look</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique9">Bright Eyes</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique10">The Orton Effect</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique11">Optimizing Lasso Selections</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique12">Aligning Layer Contents</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique13">Restoring Selections</a></li><li><a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#technique14">More Photoshop Tips and Tricks</a></li></ul><h3 id="technique1">Defining Colors</h3><p>If you want to redefine the foreground and background colors, use the Eyedropper tool to select the foreground color, and then switch the position with the background color, maybe by using the shortcut <code>X</code>, and pick up the next color. But there is an easier way. First, define the foreground color just as you’re accustomed to, but then define the background color by holding the <code>Alt/Option</code> key. Instead of changing the foreground color, you’ll redefine the background color with just one click.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks22.jpg" alt="30-tips-and-tricks22 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="400" /><br /> <em>Define foreground and background colors.</em></p><h3 id="technique2">Controlling Folders</h3><p>Folders give structure to layers, which is especially important if you’re working on demanding compositions. Folders are often collapsed, so you can’t see the contents at first sight. This conserves space but it’s not always desirable. If you want nested layers to reveal their contents and offer a quick overview, hold the <code>Control/Command</code> key and click on one of the triangles to expand. All folders at the first level will expand. You can collapse them again using the same trick. To expand all nested folders inside the folders as well, hold the <code>Alt/Option</code> key as well as the <code>Control/Command</code> key.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks25.jpg" alt="30-tips-and-tricks25 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="311" /><br /> <em>Hold the Control/Command key to expand the folder.</em></p><h3 id="technique3">Split-Toning Effect</h3><p>Create two new gradient maps via Layer &#8594; New Adjustment Layer &#8594; Gradient Map. You could, for example, create a gradient from dark-blue to beige and another from dark-brown to white. To change a gradient, click on it to open up the “Gradient Editor” dialog box. There, click on your chosen color patches and open up the color picker via the “Color field.”</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks17a.jpg" alt="30-tips-and-tricks17a in Photo Retouching Tips And Tricks In Photoshop" width="500" height="414" /><br /> <em>Blending Options: This Layer</em></p><p>Confirm with “OK,” double-click the layer with the second gradient map and, under “This Layer,” move the right slider to the left. To make the transition a little smoother, click on the slider while holding down the <code>Alt/Option</code> key and move it to the right. Confirm with “OK.”</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks17b.jpg" alt="30-tips-and-tricks17b in Photo Retouching Tips And Tricks In Photoshop" width="500" height="333" /><br /> <em>Split-Toning Effect</em></p><h3 id="technique4">Flexible Vignette</h3><p>To create a non-destructive vignette, go to New Adjustment Layer &#8594; Levels. Darken the image completely by, for example, setting the Highlights down to <code>80</code>. Now use the Brush tool with black color to paint the light center into the layer mask. Instead of using a brush to paint the area, you could use the Elliptical Marquee tool and fill the selection with black.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks16a.jpg" alt="30-tips-and-tricks16a in Photo Retouching Tips And Tricks In Photoshop" width="500" height="415" /><br /> <em>Adjustment Layer: Levels</em></p><p>You can use the Move tool to adjust the vignette’s position any time, or blur it using the “Gaussian Blur.” You can also increase or decrease the darkening. To do so, open the Levels Adjustment dialog box again.</p><h3 id="technique5">Skin Retouching In Camera Raw</h3><p>Again, open a photo in Camera Raw (for example, by using the right mouse key from Bridge and clicking “Open in Camera Raw”). In general, you can use the Spot Healing Brush tool and all other tools and sliders to improve the image. When you’re happy with it, hold the <code>Shift</code> key and click on “Open Object.” The image will be put on a new layer as a Smart Object.</p><p>You could also click the blue link at the bottom of the screen, which opens the “Workflow Options” dialog window. From there, you can control some other settings as well. Make sure to check the “Open in Photoshop as Smart Object” checkbox, and then confirm with “OK” to open the images (without having to holding <code>Shift</code>).</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks4a.jpg" alt="30-tips-and-tricks4a in Photo Retouching Tips And Tricks In Photoshop" width="500" height="405" /><br /> <em>Here, layers are smart objects.</em></p><p>Right-click on the layer and choose “New Smart Object via Copy,” and then open the Camera Raw dialog box again by double-clicking the layer icon. Set the “Clarity” value to <code>-100</code> and confirm with “OK.” Hold the <code>Alt/Option</code> key and click on the “Create Layer Mask” button, then use a soft brush to paint over the optimized skin. Use the opacity slider to control the amount of retouching.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks4b.jpg" alt="30-tips-and-tricks4b in Photo Retouching Tips And Tricks In Photoshop" width="500" height="600" /><br /> <em>Here is optimized skin with the help of Camera Raw.</em></p><h3 id="technique6">Setting Lights</h3><p>If you want to do some virtual re-positioning of your strobes, then neutralize the shot first. Go to Select &#8594; Color Range, and set Select option to “Highlights.” Copy the selection content to a new layer by hitting <code>Control/Command</code> + <code>J</code>. Activate the background layer again, and select the “Shadows” this time. Bring those to their own layer, too, with <code>Control/Command</code> + <code>J</code>, and then set the blending mode to “Screen” and the highlights to “Multiply.”</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks13a.jpg" alt="30-tips-and-tricks13a in Photo Retouching Tips And Tricks In Photoshop" width="500" height="400" /><br /><em>Highlights and shadows</em></p><p>Reduce the opacity to about <code>30%</code>, depending on the image content. “Shadows/Highlights” might also help. On a new layer, filled with a neutral gray and its blending mode set to “Overlay,” paint in the desired light quality with the Dodge and Burn tools. Alternatively, add a new layer and set its blending mode to “Soft Light” or “Overlay” and, with a low opacity brush, paint black and white on this layer.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks13b.jpg" alt="30-tips-and-tricks13b in Photo Retouching Tips And Tricks In Photoshop" width="500" height="334" /><br /> <em>The lights were neutralized a bit.</em></p><h3 id="technique7">Distinguished Paleness</h3><p>For a distinguished paleness, copy the background layer and set its blending mode to “Screen.” Use Image &#8594; Adjustments &#8594; Desaturate or “Black &#038; White,” then “Shadows/Highlights” to increase the effect. The exact adjustment options can vary according to your image content.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks2a.jpg" alt="30-tips-and-tricks2a in Photo Retouching Tips And Tricks In Photoshop" width="500" height="374" /><br /> <em>Here’s the layer after creating the mask.</em></p><p>The effect will cover the entire image unless you click on the “Create Layer Mask” button while holding the <code>Alt/Option</code> key, and then paint the pale areas with the brush tool and white color. You can control the effect’s strength with the opacity slider.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks2b.jpg" alt="30-tips-and-tricks2b in Photo Retouching Tips And Tricks In Photoshop" width="500" height="375" /><br /> <em>Distinguished paleness.</em></p><h3 id="technique8">Dodge And Burn Look</h3><p>Copy the reduced layers to a new layer with <code>Shift</code> + <code>Control/Command</code> +<code> Alt/Option</code> + <code>E</code>, and then set the blending mode to “Vivid Light.” Use <code>Control/Command</code> + <code>I</code> to invert the layer content, and apply Filter &#8594; Blur &#8594; Surface Blur with a radius of about <code>70</code> pixels and a threshold of <code>40</code> levels. Press <code>Shift</code> + <code>Control/Command</code> + <code>Alt/Option</code> + <code>E</code> again, delete the layer below, and set the blending mode to “Overlay.” Apply a “Gaussian Blur” to make the contours a little softer, and then click Image &#8594; Adjustments &#8594; Desaturate.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks9.jpg" alt="30-tips-and-tricks9 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="375" /><br /> <em>Dodge and Burn Look</em></p><h3 id="technique9">Bright Eyes</h3><p>To make eyes appear brilliant, click on New Adjustment Layer &#8594; Exposure. Fill the layer mask with black (or invert the mask), and paint with white over the irises and with black over the pupils. Set the blending mode of the adjustment layer to “Luminosity.” Increase the exposure in concert with the gamma value to give the iris structure more contrast. Also, try changing the “Offset slider.”</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks11.jpg" alt="30-tips-and-tricks11 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="600" /><br /> <em>Create beautiful eyes with exposure.</em></p><h3 id="technique10">The Orton Effect</h3><p>With the Orton effect, sharp and blurred versions of a photo are mixed together. Copy the background layer with <code>Control/Command</code> + <code>J</code>, and click on Image &#8594; Apply Image. Change the blending mode to “Screen” and click “OK.” Copy the current layer again with <code>Control/Command</code> + <code>J</code>. Apply a Gaussian Blur to this copy by clicking Filter &#8594; Blur &#8594; Gaussian Blur. The value will depend on the size of the image. The shapes should always blur slightly. Set the blending mode for the layer to “Multiply.”</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks15.jpg" alt="30-tips-and-tricks15 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="600" /><br /> <em>The Orton effect creates contrast and depth.</em></p><h3 id="technique11">Optimizing Lasso Selections</h3><p>Many users (even professionals) prefer the Lasso Selection tool to the Path tool for uncomplicated selections. To switch to the Polygon Lasso tool for a short stretch, hold the <code>Alt/Option</code> key while working. To switch back to the regular Lasso tool, just release the <code>Alt/Option</code> key while depressing the mouse button.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks28.jpg" alt="30-tips-and-tricks28 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="481" /><br /> <em>Switching between the Lasso and Polygon Lasso tools is easy.</em></p><p>It often happens that, during a zoom, you hit the edge of the work area while making a selection. Just keep the space bar pressed to switch to the Hand tool, and you can quickly change the displayed image section.</p><h3 id="technique12">Aligning Layer Contents</h3><p>Some areas in Photoshop are hardly ever noticed. This is one of them. If you activate the Move tool, you’ll see some mysterious symbols to the right called Align tools, in the option bar next to Auto-Select and the Transform controls (which are basically equivalent to Free Transform).</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks29.jpg" alt="30-tips-and-tricks29 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="252" /><br /> <em>Align tools</em></p><p>If you activate just one layer, the Align tools won’t do anything, but if you select two or more layers by holding the <code>Control/Command</code> key, then you can align the layer’s contents with these buttons. Choose from options such as “Align Top Edge” and “Align Vertical Center.”</p><h3 id="technique13">Restoring Selections</h3><p>Often, while in the middle of working on a tricky selection, you’ll accidentally deselect it by clicking once too often. You can restore the lost selection by pressing <code>Shift</code> + <code>Control/Command</code> + <code>D</code>. This will get the ants marching again. You can also undo (<code>Control/Command</code> + <code>Z</code>) the action, and even perform multiple undos with <code>Control/Command</code> + <code>Alt/Option</code> + <code>Z</code>.</p><p>By the way, you can hold the <code>Alt/Option</code> key to subtract elements from the selection at any time, or hold the <code>Shift</code> key to add to the selection. Pressing a combination of both keys creates a selection intersection. Important selections that you might need later can be saved by going to Select &#8594; Save Selection.</p><p><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/30-tips-and-tricks30.jpg" alt="30-tips-and-tricks30 in Photo Retouching Tips And Tricks In Photoshop" width="500" height="600" /><br /> <em>Restore lost selections.</em></p><h4 id="technique14">More Tips and Tricks to Improve Your Workflow:</h4><ul><li><a href="http://www.smashingmagazine.com/2010/01/20/obscure-adobe-photoshop-time-savers/">Mastering Photoshop: Unknown Tricks and Time-Savers</a> by Thomas Giannattasio</li><li><a href="http://www.smashingmagazine.com/2010/12/16/compositing-in-adobe-photoshop-time-saving-tips/">Compositing in Adobe Photoshop: Time-Saving Tips</a> by Daniel Durrans</li><li><a href="http://www.smashingmagazine.com/2011/02/07/mastering-photoshop-noise-textures-gradients-and-rounded-rectangles/">Mastering Photoshop: Noise, Textures, Gradients and Rounded Rectangles</a> by Marc Edwards</li><li><a href="http://www.smashingmagazine.com/2010/09/22/round-up-of-useful-adobe-photoshop-techniques-tutorials-and-tools/">Useful Adobe Photoshop Techniques, Tutorials and Tools</a> by Vitaly Friedman</li><li><a href="http://www.smashingmagazine.com/2010/03/30/the-ultimate-guide-to-cloning-in-photoshop/">The Ultimate Guide To Cloning In Photoshop</a> by Joshua Johnson</li><li><a href="http://www.smashingmagazine.com/2008/10/20/the-ultimate-collection-of-useful-photoshop-actions/">The Ultimate Collection Of Useful Photoshop Actions</a> by Jacob Gube</li><li><a href="http://www.smashingmagazine.com/2009/12/17/unveiling-photoshop-masks/">Unveiling Photoshop Masks</a> by Thomas Giannattasio</li></ul><p><em>(al) (vf) (ik)</em></p><hr /><p><small>© Dirk Metzmacher for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2011. | <a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/">Permalink</a> | <a href="http://www.smashingmagazine.com/2011/03/25/30-tips-and-tricks-for-photo-retouching-that-you-dont-know-yet/#comments">Post a comment</a> | <a href="http://shop.smashingmagazine.com/" title="Smashing Shop">Smashing Shop</a> | <a href="http://www.smashingmagazine.com/the-smashing-network/" title="Smashing Network">Smashing Network</a> | <a href="http://www.smashingmagazine.com/about/" title="About Us">About Us</a><br/> Post tags: <a href="http://www.smashingmagazine.com/tag/photoshop/" rel="tag">photoshop</a><br/> </small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/photo-retouching-tips-and-tricks-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Innovative Techniques and Practical Solutions</title>
		<link>http://www.creativemanstudio.com/blog/css-innovative-techniques-and-practical-solutions/</link>
		<comments>http://www.creativemanstudio.com/blog/css-innovative-techniques-and-practical-solutions/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 12:10:25 +0000</pubDate>
		<dc:creator>pcontreras</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=90289</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt="" /></a></div></td></tr></table><p>Although CSS isn't <em>that</em> difficult, useful CSS techniques are not easy to find. Sometimes finding a cross-browser solution might take time, but you don't have to reinvent the wheel every single time. Other designers may have had the same problem in the past and thus the main goal of this round-up is to share with you a goldmine of new techniques which you will hopefully find very useful and valuable. We also hope that these tutorials and articles will help you solve common design problems and find new ways of approaching tricky CSS issues.</p><p><a href="http://www.smashingmagazine.com/?p=90289"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-187.jpg" width="500" height="300" alt="Screenshot" /></a></p> <p>The main goal of the article is to <strong>present powerful new CSS techniques</strong>, encourage experimentation in the design community and push CSS forward. Please notice that we feature both experimental demos and practical techniques in this article. Next week we will present even more useful new tools and resources for front-end developers. We sincerely appreciate the efforts of the design community — thank you, guys!</p>]]></description>
			<content:encoded><![CDATA[<table width="650"><tr><td width="650"><div style="width:650px;"> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="Advertisement in CSS: Innovative Techniques and Practical Solutions" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt=" in CSS: Innovative Techniques and Practical Solutions"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt=" in CSS: Innovative Techniques and Practical Solutions"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt=" in CSS: Innovative Techniques and Practical Solutions"  /></a></div></td></tr></table><p>Although CSS isn&#8217;t <em>that</em> difficult, useful CSS techniques are not easy to find. Sometimes finding a cross-browser solution might take time, but you don&#8217;t have to reinvent the wheel every single time. Other designers may have had the same problem in the past and thus the main goal of this round-up is to share with you a goldmine of new techniques which you will hopefully find very useful and valuable. We also hope that these tutorials and articles will help you solve common design problems and find new ways of approaching tricky CSS issues.</p><p>The main goal of the article is to <strong>present powerful new CSS techniques</strong>, encourage experimentation in the design community and push CSS forward. Please notice that we feature both experimental demos and practical techniques in this article. Next week we will present even more useful new tools and resources for front-end developers. We sincerely appreciate the efforts of the design community — thank you, guys!</p><h3>Interesting and Original Techniques</h3><p><a href="http://www.is-real.net/experiments/css3/wonder-webkit/">Wonder-Webkit: 3D Transforms</a><br />This is a remarkable example of what can be done using CSS3 3D transformations. The interesting stuff is the possibility of manipulate the transformation matrix of any element of the DOM, In this case we get the matrix given only the four end points of the element. Don&#8217;t forget to click on the items, too. Who thought a couple of years ago that something like that would be possible with only CSS?</p><p class="showcase"><a href="http://www.is-real.net/experiments/css3/wonder-webkit/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-187.jpg" width="500" height="300" alt="Css-187 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.zurb.com/playground/css-boxshadow-experiments">CSS Box Shadow &#038; Text Shadow Experiments</a><br />The CSS <code>box-shadow</code> and <code>text-shadow</code> allow us to create some pretty cool design elements that don&#8217;t even look like shadows. The key is to think about how CSS shadows work and use them to get the desired effect. The article features three remarkable examples of using <code>box-shadow</code> property creatively to achieve effects that don&#8217;t have much to do with shadows.</p><p class="showcase"><a href="http://www.zurb.com/playground/css-boxshadow-experiments"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/triangle.jpg" width="500" height="300" alt="Triangle in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://forrst.com/posts/CSS3_Depth_of_Field-4zh">CSS3 Depth of Field</a><br />Sawyer Hollenshead&#8217;s experiment is an attempt to create the &#8220;Depth of Field&#8221; effect with CSS. The blurry text is accomplished using <code>text-shadow</code>, with the text color set to <code>transparent</code>. Take a look at the <a href="http://shakenandstirredweb.com/playground/blur/">demo</a> and don&#8217;t forget to press &#8216;n&#8217; to toggle animation.</p><p class="showcase"><a href="http://forrst.com/posts/CSS3_Depth_of_Field-4zh"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-119.jpg" width="500" height="300" alt="New-css-techniques-119 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://manufacturaindependente.com/colorfont/">Art Deco Selectable Text</a><br />This is a quick proof-of-concept of split typography, based on Pierre Fix-Masseau&#8217;s Art Deco style. The challenge was to have this kind of &#8216;split letters&#8217; as part of a web page layout, while retaining the ability to select text.</p><p class="showcase"><a href="http://manufacturaindependente.com/colorfont/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/art-deco.jpg" width="500" height="300" alt="Art-deco in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://lab.simurai.com/css/toggle/#box">CSS3 :toggle-button without JavaScript</a><br />This demo presents a CSS3 toggle-button that works without JavaScript. If you ever need it: You stack two <code>&#60;a&#62;</code>s on top of each other and then disable pointer-events for the top <code>&#60;a&#62;</code> on <code>:target</code>.</p><p class="showcase"><a href="http://lab.simurai.com/css/toggle/#box"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-268.jpg" width="500" height="300" alt="Css-268 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://id.merz-akademie.de/guernica/">About War and Bananas</a><br />This student project explores new ways of styling and designing websites in an artistic way. The students from Merz Akademie in Germany used Picasso&#8217;s &#8220;Guernica&#8221; as the footage, seperated the picture into different layers and animated them using CSS.</p><p class="showcase"><a href="http://id.merz-akademie.de/guernica/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-150.jpg" width="500" height="300" alt="Css-150 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://onotakehiko.com/webkitclock/">WebKit Clock</a><br />This demo is driven by HTML5 canvas, CSS3, JavaScript, Web Fonts, SVG and no image files. The CSS file is huge, yet the result is quite remarkable.</p><p class="showcase"><a href="http://onotakehiko.com/webkitclock/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-146.jpg" width="500" height="300" alt="Css-146 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.designmadeingermany.de/slideshow/#a1">Pure CSS Slideshow</a><br />This technique uses CSS transforms and positioning to create the pure CSS-based slideshow. Unfortunately, no documentation is available (yet).</p><p class="showcase"><a href="http://www.designmadeingermany.de/slideshow/#a1"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-102.jpg" width="500" height="300" alt="New-css-techniques-102 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://michaelhue.com/cssdock/">CSS Dock</a><br />This is a quick CSS3 experiment trying to replicate the Dock of OS X, complete with labels, animations, reflections and indicators. It uses CSS transitions for the magnification effect and the <code>:target</code> pseudo-class and CSS animations for the bouncing effect.</p><p class="showcase"><a href="http://michaelhue.com/cssdock/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-108.jpg" width="500" height="300" alt="New-css-techniques-108 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.andrew-hoyer.com/experiments/walking/">Andrew Hoyer</a><br />An interesting experiment by Andrew Hoyer. The walking man is implemented using only CSS3 animations and simple HTML. The key idea behind all of this is the fact that a CSS transformation applied to an element also applies to all of its children. Works in Webkit-browsers only.</p><p class="showcase"><a href="http://www.andrew-hoyer.com/experiments/walking/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-197.jpg" width="500" height="300" alt="New-css-techniques-197 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://blog.typekit.com/2011/02/10/type-study-an-all-css-button/">Type study: An all CSS button</a><br />Dan Cederholm explains how through the use of <code>box-shadow</code>, <code>text-shadow</code>, <code>border-radius</code>, and CSS gradients, we can create a highly polished three-dimensional, responsive button that doesn’t require images.</p><p class="showcase"><a href="http://blog.typekit.com/2011/02/10/type-study-an-all-css-button/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-103.jpg" width="500" height="300" alt="New-css-techniques-103 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://markdotto.com/playground/3d-text/">3D Text</a><br />This technique uses multiple <code>text-shadow</code>s to create a 3D appearance of the text on any HTML element. No extra mark-up is used. Works in the latest builds of Safari, Chrome, Firefox, and Opera.</p><p class="showcase"><a href="http://markdotto.com/playground/3d-text/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/3d-text.jpg" width="500" height="300" alt="3d-text in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://inspectelement.com/articles/spin-those-icons-with-css3/">Spin those Icons with CSS3</a><br />Tom Kenny features a neat effect which spins the social icons with the help of a CSS transforms and transition when you hover over them. A very nice enhancement.</p><p class="showcase"><a href="http://inspectelement.com/articles/spin-those-icons-with-css3/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-111.jpg" width="500" height="300" alt="Css-111 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://css-tricks.com/examples/ShapesOfCSS/">The Shapes of CSS</a><br />The article presents various geometrical forms, all created using CSS and a single HTML element. The following forms are presented: square, rectangle, circle, oval, triangle, parallelogram, trapezoid, star, pentagon, hexagon, octagon, heart and infinity — all using CSS only.</p><p class="showcase"><a href="http://css-tricks.com/examples/ShapesOfCSS/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-272.jpg" width="500" height="300" alt="Css-272 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://nicolasgallagher.com/css-background-image-hacks/">CSS background image hacks</a><br />Emulating background image crop, background image opacity, background transforms, and improved background positioning. The article explains a few hacks relying on CSS pseudo-elements to emulate features unavailable or not yet widely supported by modern browsers.</p><p class="showcase"><a href="http://nicolasgallagher.com/css-background-image-hacks/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/background-image-hacks.jpg" width="500" height="300" alt="Background-image-hacks in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://tutorialzine.com/2010/11/better-select-jquery-css3/">Making Better Select Elements with CSS3 and jQuery</a><br />This tutorial explains how to take an ordinary <code>select</code> element, and replace it with a better looking version, while keeping all the functionality intact. It uses CSS3 multiple background and a transparent PNG image as a sprite. Currently, multiple backgrounds are supported by Firefox, Safari, Chrome and Opera. For Internet Explorer and older versions of the first browsers, a fallback is defined, which is basically just a regular version of the background. When parsing the CSS document, browsers that do not understand multiple background will just ignore the rule and use the plain one.</p><p class="showcase"><a href="http://tutorialzine.com/2010/11/better-select-jquery-css3/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-190.jpg" width="500" height="300" alt="Css-190 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/build-a-kickbutt-css-only-3d-slideshow/">CSS-Only 3D Slideshow</a><br />This tutorial shows how to create a 3D slideshow using only HTML and CSS. No JavaScript required. You&#8217;ll be able to mimic a click event with CSS using the <code>:focus</code> pseudo-class and the HTML5 element <code>&#60;figcaption&#62;</code>, but the idea is the same. As the author admits, this method isn’t necessarily “better” than using JavaScript, but simply a neat alternative that takes advantages of the newest HTML5 elements.</p><p class="showcase"><a href="http://net.tutsplus.com/tutorials/html-css-techniques/build-a-kickbutt-css-only-3d-slideshow/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-157.jpg" width="500" height="300" alt="New-css-techniques-157 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.sohtanaka.com/web-design/css-border-tricks-tutorial/">Have Fun with Borders</a><br />This tutorial shows three simple technique to add a light shadow, &#8220;pressed&#8221; and &#8220;beveled&#8221; states to text blocks and images. By Soh Tanaka.</p><p class="showcase"><a href="http://www.sohtanaka.com/web-design/css-border-tricks-tutorial/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-223.jpg" width="500" height="300" alt="New-css-techniques-223 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.shayhowe.com/tutorial/css3-animated-owl-tutorial/">Animated CSS3 Owl</a><br /> &#8220;What about having an owl that moved his eyes every so often and when hovered over would raise his wings while a few light rays would spin in the background. A little excessive? Probably. Necessary? Not at all. However, that&#8217;s exactly what I was looking to do with CSS3 transforms, transitions, and animations.&#8221; An interesting experiment, best viewed in Safari or Chrome.</p><p class="showcase"><a href="http://www.shayhowe.com/tutorial/css3-animated-owl-tutorial/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/owl.jpg" width="500" height="216" alt="Owl in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://blog.bloop.co/33827558">CSS Social Sign-in Buttons</a><br />This blog post describes a fairly simple technique for creating nice responsive CSS-buttons using a CSS sprite, <code>border-radius</code>, shadows and CSS gradients.</p><p class="showcase"><a href="http://blog.bloop.co/33827558"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-258.jpg" width="500" height="300" alt="Css-258 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://css-class.com/test/css/3/transform-color-cube3.htm">Rotating color cube box with CSS3 animation, transforms and gradients</a><br />A yet another remarkable experiment that presents a rotating color cube using CSS3 animations and transforms. Be aware that the browser may slow down a bit when loading the demo.</p><p class="showcase"><a href="http://css-class.com/test/css/3/transform-color-cube3.htm"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-260.jpg" width="500" height="300" alt="Css-260 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.zachstronaut.com/posts/2010/07/28/3d-css3-galaxy.html">CSS3 Demo: 3D Interactive Galaxy</a><br />A CSS3 demo where you can interact with a procedurally generated 3D galaxy. In order to create the effect, the designer used 3D CSS properties available in Safari 5 and on the iPhone and iPad.</p><p class="showcase"><a href="http://www.zachstronaut.com/posts/2010/07/28/3d-css3-galaxy.html"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/galaxy.jpg" width="500" height="300" alt="Galaxy in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://blog.typekit.com/2011/01/25/case-study-getting-hardboiled-with-css3-2d-transforms/">Getting Hardboiled with CSS3 2D Transforms</a><br />Andy Clarke explains how to use CSS3 two-dimensional transforms to add realism to a row of hardboiled private detectives’ business cards. The <a href="http://hardboiledwebdesign.com/demo/2011-01-26/index.html">working demo is available</a> as well.</p><p class="showcase"><a href="http://blog.typekit.com/2011/01/25/case-study-getting-hardboiled-with-css3-2d-transforms/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-261.jpg" width="500" height="300" alt="Css-261 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.jankoatwarpspeed.com/post/2010/05/23/microsoft-office-minibar-jQuery-CSS3.aspx">How to create Microsoft Office Minibar with jQuery and CSS3</a><br />Janko Jovanovic explains how to create a Microsoft Office Minibar that exposes context-related functionality. In case of MS Word, context is a text selection. Since Minibar always pops up near the mouse pointer it enables users to quickly perform actions related to a selection.</p><p class="showcase"><a href="http://www.jankoatwarpspeed.com/post/2010/05/23/microsoft-office-minibar-jQuery-CSS3.aspx"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-171.jpg" width="500" height="300" alt="New-css-techniques-171 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://cssglobe.com/post/9392/angled-content-mask-with-css">Angled Content Mask with CSS</a><br />This article explains how to create angled CSS content &#8220;masks&#8221;. The idea is pretty simple and uses CSS transform property (rotation, to be more precise).</p><p class="showcase"><a href="http://cssglobe.com/post/9392/angled-content-mask-with-css"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/bicycle.jpg" width="500" height="300" alt="Bicycle in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://css-tricks.com/rotating-feature-boxes/">Rotating Feature Boxes</a><br />All the animation here are CSS3 transitions. JavaScript only watches for the clicks and applies and removes classes as needed. So when you click on a block, that block&#8217;s class&#8217; is adjusted. The new classes have different size and position values. Because the block has transition CSS applied, those new sizes and postion values are animated as well.</p><p class="showcase"><a href="http://css-tricks.com/rotating-feature-boxes/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/feature-boxes.jpg" width="500" height="300" alt="Feature-boxes in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.matthamm.com/box-shadow-curl.html">Pure CSS3 box-shadow page curl effect</a><br />Okay, the CSS3 code here is quirky and might seem a bit bloated first, but it&#8217;s a nice example of using various CSS3 features together to create an effect that would usually require images.</p><p class="showcase"><a href="http://www.matthamm.com/box-shadow-curl.html"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/curl.jpg" width="500" height="300" alt="Curl in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://nicolasgallagher.com/pure-css-folded-corner-effect/">Pure CSS Folded-Corner Effect</a><br />Learn how to create a simple CSS folded-corner effect without images or extra markup. It works well in all modern browsers and is best suited to designs with simple colour backgrounds; supported by Firefox 3.5+, Chrome 4+, Safari 4+, Opera 10+, IE 8+.</p><p class="showcase"><a href="http://nicolasgallagher.com/pure-css-folded-corner-effect/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/fold.jpg" width="500" height="300" alt="Fold in CSS: Innovative Techniques and Practical Solutions"  /></a></p><h3>Useful Practical Techniques</h3><p><a href="http://www.elated.com/articles/smooth-fading-image-captions-with-pure-css3/">Smooth Fading Image Captions with Pure CSS3</a><br />Learn how to use CSS3 transitions to create nice, animated, semitransparent image captions. Full example and code download included.</p><p class="showcase"><a href="http://www.elated.com/articles/smooth-fading-image-captions-with-pure-css3/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/smooth.jpg" width="500" height="300" alt="Smooth in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://css-tricks.com/fade-image-within-sprite/">Fade Image Into Another</a><br />Learn how to create an image rollover by giving the element a background image. There are three ways to fade in the opacity. Click here to find out more:</p><p class="showcase"><a href="http://css-tricks.com/fade-image-within-sprite/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/web-services-030.jpg" width="500" height="300" alt="Web-services-030 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://readableweb.com/new-font-face-syntax-simpler-easier/">New @Font-Face Syntax: Simpler, Easier</a><br />With IE9 and FF4 nearing release, Ethan Dunham from Font Squirrel has revisited the problem of a cross-browser CSS @font-face syntax and found a new and simpler solution. In this article, Richard Fink explains the new syntax and its variations and suggests the most reasonable syntax to use. Also, check FontSpring&#8217;s <a href="http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax">The New Bulletproof @font-face Syntax</a>. Please notice that this technique no longer works in Internet Explorer 9.</p><p class="showcase"><a href="http://readableweb.com/new-font-face-syntax-simpler-easier/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-174.jpg" width="500" height="300" alt="New-css-techniques-174 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://perishablepress.com/press/2009/12/06/new-clearfix-hack/">The New Clearfix Method</a><br />The clearfix hack, or &#8220;easy-clearing&#8221; hack, is a useful method of clearing floats. The <a href="http://perishablepress.com/press/2008/06/18/css-hackz-series-clearing-floats-with-the-clearfix-hack/">original clearfix hack</a> works great, but the browsers that it targets are either obsolete or well on their way. The new clearfix method applies clearing rules to standards-compliant browsers using the <code>:after</code> pseudo-class. For IE6 and IE7, the new clearfix method triggers <code>hasLayout</code> with some proprietary CSS. Thus, the New Clearfix method effectively clears floats in all currently used browsers without using any hacks.</p><p class="showcase"><a href="http://perishablepress.com/press/2009/12/06/new-clearfix-hack/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-168.jpg" width="500" height="300" alt="New-css-techniques-168 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-mimic-a-click-event-with-css/">Quick Tip: Mimic a Click Event with CSS</a><br />Jeffrey Way shares with us a quick tip with a video that will illustrate a nifty technique by using plain and simple CSS to mimic click events.</p><p><a href="http://css-tricks.com/triangle-breadcrumbs/">Breadcrumb Navigation with CSS Triangles</a><br />This article describes a fairly simple technique for creating triangles with pure CSS. You just make a block level element with zero width and height, a colored border on one side, and transparent borders on the two adjacent sides. Useful for little arrow sticking out from speech bubbles, navigation pointers, and more.</p><p class="showcase"><a href="http://css-tricks.com/triangle-breadcrumbs/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-200.jpg" width="500" height="300" alt="Css-200 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://filamentgroup.com/lab/responsive_images_experimenting_with_context_aware_image_sizing/">Responsive Images: Experimenting with Context-Aware Image Sizing</a><br />Since Ethan Marcotte coined the term, responsive Web design has gained a lot of attention in the Web design community, mainly due to its remarkable potential for flexible layouts that respond to the browser’s viewport for the best user experience. The main problem with such designs, however, is figuring out how to serve small images to mobile devices and tablets and large ones to desktop displays. The goal of this technique is to deliver optimized, contextual image sizes for responsive layouts that utilize dramatically different image sizes at different resolutions.</p><p class="showcase"><a href="http://filamentgroup.com/lab/responsive_images_experimenting_with_context_aware_image_sizing/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-121.jpg" width="500" height="300" alt="New-css-techniques-121 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://csswizardry.com/2011/02/css-powered-ribbons-the-clean-way/">CSS powered ribbons the clean way</a><br />Harry Roberts presents a simple technique that uses an image and CSS to create clean ribbons. This technique creates a white <code>&#60;h2&#62;</code> with a pink background, pulls the &#60;h2&#62; out of the content area with a negative margin and then places the image absolutely left-bottom of the <code>&#60;h2&#62;</code> in a <code>:before</code> pseudo-element.</p><p class="showcase"><a href="http://csswizardry.com/2011/02/css-powered-ribbons-the-clean-way/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-123.jpg" width="500" height="300" alt="New-css-techniques-123 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://csswizardry.com/2011/01/create-a-centred-horizontal-navigation/">Create a centred horizontal navigation</a><br />Centring block level elements is easy, just define a <code>width</code> and set <code>margin: 0 auto;</code>, but what if you don&#8217;t know that fixed width? You could use <code>text-align: center</codE>;, but that won't work on 100%-width block-level elements either. However, there is a way to have a centred horizontal navigation without knowing an explicit width, and without adding CSS.</p><p><a href="http://css-tricks.com/keep-margins-out-of-link-lists/">Keep Margins Out of Link Lists</a><br />When building a menu or other list of links, it's generally a good practice to use <code>display: block;</code> or <code>display: inline-block;</code> so that you can increase the size of the link target. The simple truth: bigger link targets are easier for people to click and lead to better user experience. Make sure list items don't have padding, but links do and don't use margins, so there are no un-clickable gaps.</p><p class="showcase"><a href="http://css-tricks.com/keep-margins-out-of-link-lists/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-198.jpg" width="500" height="300" alt="New-css-techniques-198 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://cssglobe.com/post/9435/pure-css3-post-tags">Pure CSS3 Post Tags</a><br />This is a rather simple pure CSS trick you can use to style your blog post tags, usually placed at the bottom of the posts. See also <a href="http://playground.deaxon.com/css/tag-shape/">Image-Free Tag Shape</a>.</p><p class="showcase"><a href="http://cssglobe.com/post/9435/pure-css3-post-tags"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/tag-name.jpg" width="500" height="300" alt="Tag-name in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://leaverou.me/2011/01/styling-children-based-on-their-number-with-css3/">Styling children based on their number, with CSS3</a><br />Lea Verou presents an interesting technique for styling children based on their number. It is based on the relationship between <code>:nth-child</code> and <code>:nth-last-child</code>. With the technique, the number of total rules is still O(N), but the number of selectors in every rule becomes just 2, making this trick practical for far larger numbers of children.</p><p class="showcase"><a href="http://leaverou.me/2011/01/styling-children-based-on-their-number-with-css3/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-115.jpg" width="500" height="300" alt="New-css-techniques-115 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://perishablepress.com/press/2010/06/01/wrapping-content/">Wrapping Long URLs and Text Content with CSS</a><br />To wrap long URLs, strings of text, and other content, it's enough to apply a carefully crafted chunk of CSS code to any block-level element (e.g., perfect for <code>&#60;pre&#62;</code> tags). Very useful for cases when code snippets need to be presented in a blog post with a fixed content width.</p><p class="showcase"><a href="http://perishablepress.com/press/2010/06/01/wrapping-content/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-165.jpg" width="500" height="300" alt="New-css-techniques-165 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.venturelab.co.uk/devblog/2011/01/pure-css3-accordion/">Pure CSS(3) accordion</a><br />An interesting accordion technique that uses nothing but semantic HTML, CSS and some progressive CSS3. There are also two versions, a horizontal one and a vertical one.</p><p class="showcase"><a href="http://www.venturelab.co.uk/devblog/2011/01/pure-css3-accordion/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-114.jpg" width="500" height="300" alt="Css-114 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://perishablepress.com/press/2010/10/20/target-iphone-and-ipad-with-css3-media-queries/">Target iPhone and iPad with CSS3 Media Queries</a><br />A detailed explanation of how to se CSS3 media queries to apply CSS style to the portrait and landscape modes in mobile devices such as iPad or iPhone.</p><p><a href="http://css-tricks.com/limit-html-width/">Rein In Fluid Width By Limiting HTML Width</a><br />If you are making a fluid width site but wish to limit the maximum width it can expand, you can do so easily by literally applying a <code>max-width</code> to the <code>html</code> element. Quick and useful tip.</p><p class="showcase"><a href="http://css-tricks.com/limit-html-width/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-193.jpg" width="500" height="300" alt="New-css-techniques-193 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.yuiblog.com/blog/2010/11/15/inline-boxes-with-bottom-alignment/">Inline Boxes with Bottom Alignment</a><br />Imagine that you want to keep a "Submit" button at the bottom of a line box, aligned with form controls positioned below their label (see below). If the containing block is not wide enough for the "Submit" button to flow next to the other controls, that button must be displayed at the beginning of the next line box with minimal space above it. The article explains a solution for this problem.</p><p class="showcase"><a href="http://www.yuiblog.com/blog/2010/11/15/inline-boxes-with-bottom-alignment/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-168.jpg" width="500" height="300" alt="Css-168 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.smashingmagazine.com/2010/10/31/transparent-css-sprites/">Transparent CSS Sprites</a><br />The idea of the technique is to create a transparent sprite allowing the <code>background-color</code> to show through. If you are familiar with CSS Sprites, you should be able to grasp this twist relatively easily. Simply, an image with a transparent “knocked-out” transparent center is placed over a background colour. Changing the background colour changes the appearance of the element.</p><p><a href="http://nicolasgallagher.com/jump-links-and-viewport-positioning/">Jump links and viewport positioning</a><br />"Using within-page links presses the jumped-to content right at the very top of the viewport. This can be a problem when using a fixed header. With a bit of hackery, there are some CSS methods to insert space between the top of the viewport and the target element within a page."</p><p class="showcase"><a href="http://nicolasgallagher.com/jump-links-and-viewport-positioning/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-170.jpg" width="500" height="300" alt="Css-170 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-mimic-equal-columns-with-css3-gradients/">Mimic Equal Columns with CSS3 Gradients</a><br />"What happens when your main content area needs two specific background colors: one for the primary content, and another for the sidebar? If you’ve ever tried applying the background to each container itself, you’ll no doubt have realized that your layout quickly becomes fragmented as soon as the primary content section exceeds the height of the sidebar. Generally, the solution is to set a background image on the parent element, and set it to repeat vertically. However, if we get clever with CSS3 gradients, we can achieve the same effect with zero images." A nice piece by Jeffrey Way.</p><p><a href="http://css-tricks.com/double-click-in-css/">Double Click in CSS</a><br /> There has been some interesting talk about how we essentially lose the :hover pseudo class in CSS as well as mouseenter, mouseleave, and mousemove in JavaScript. Now, here is the idea: can we somehow pull off a double click with pure CSS? Yes, we can, if the input covers link, buries on focus, which triggers hover on link keeping it on top. Work on WebKit (including Mobile) and Firefox. So we've basically created a "light" alternative to hover for the sequence tap &rarr; change state / activate link &rarr; tap again to visit link.</p><p class="showcase"><a href="http://css-tricks.com/double-click-in-css/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-207.jpg" width="500" height="300" alt="New-css-techniques-207 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.impressivewebs.com/center-multiple-divs/">Center Multiple DIVs with CSS</a><br />At some point, you may have a situation where you want to center multiple elements (maybe <code>&laquo;div&raquo;</code> elements, or other block elements) on a single line in a fixed-width area. Centering a single element in a fixed area is easy. Just add <code>margin: auto</code> and a fixed width to the element you want to center, and the margins will force the element to center. You can achieve something similar by taking advantage of CSS’s flexibity with “recasting” elements.</p><p class="showcase"><a href="http://www.impressivewebs.com/center-multiple-divs/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/center.jpg" width="500" height="300" alt="Center in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.webdesignerwall.com/tutorials/css-clearing-floats-with-overflow/">Clearing Floats with Overflow</a><br />One of the common problems we face when coding with float-based layouts is that the wrapper container doesn't expand to the height of the child floating elements. The typical solution to fix this is by adding an element with clear float after the floating elements or adding a clearfix to the wrapper. But you can also use the <code>overflow</code> property to fix this problem. It's not a new trick, but still very useful.</p><p class="showcase"><a href="http://www.webdesignerwall.com/tutorials/css-clearing-floats-with-overflow/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/overflow.jpg" width="500" height="300" alt="Overflow in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://css-tricks.com/different-transitions-for-hover-on-hover-off/">Different Transitions for Hover On / Hover Off</a><br />The idea of this technique is to solve an interesting problem: what about using different transition for hover on and off? In the example, when you hover over, the <code>:hover</code> transition overrides the transition set in the regular state, and that property animates. When you hover off, the transition from the regular state takes over and that property animates. Useful.</p><p><a href="http://devign.me/css-stretch-a-box-to-its-parent-bounds/">Stretch a Box to its Parent's Bounds</a><br />A powerful feature that enables absolute positioning of stretching a box. The most popular use is having a box positioned in either <code>top</code> or <code>bottom</code> and <code>right</code> or <code>left</code> coordinates.</p><p><a href="http://www.smashingmagazine.com/2010/11/08/equal-height-columns-using-borders-and-negative-margins-with-css/">Equal Height Column Layouts with Borders and Negative Margins in CSS</a><br />This article demonstrates different construct techniques and brushes up on a few concepts you might have missed.</p><p class="showcase"><a href="http://www.smashingmagazine.com/2010/11/08/equal-height-columns-using-borders-and-negative-margins-with-css/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/layout.jpg" width="500" height="300" alt="Layout in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://line25.com/articles/using-css-text-shadow-to-create-cool-text-effects">Using CSS Text-Shadow to Create Cool Text Effects</a><br />The CSS3 text-shadow property has been around for some time now and is commonly used to recreate Photoshop's Drop Shadow type shading to add subtle shadows which help add depth, dimension and to lift an element from the page. A demo is available if you'd like to see what it looks like before you give it a try yourself.</p><p class="showcase"><a href="http://line25.com/articles/using-css-text-shadow-to-create-cool-text-effects"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-186.jpg" width="500" height="300" alt="New-css-techniques-186 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://css-tricks.com/fluid-width-equal-height-columns/">Fluid Width Equal Height Columns</a><br />Equal height columns have been a need of web designers forever. If all the columns share the same background, equal height is irrelevant because you can set that background on a parent element.</p><p class="showcase"><a href="http://css-tricks.com/fluid-width-equal-height-columns/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-204.jpg" width="500" height="300" alt="New-css-techniques-204 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://trentwalton.com/2010/11/22/css-box-shadowinset/">CSS Box-Shadow:Inset</a><br />It's always nice to be able to add a vignetting effect to photos sans-Photoshop, but the way browsers interpret box-shadow:inset is to throw the shadow behind the image, rendering it invisible. While this seems pretty useless, it does make sense when you consider other kinds of content.</p><p class="showcase"><a href="http://trentwalton.com/2010/11/22/css-box-shadowinset/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/inset.jpg" width="500" height="300" alt="Inset in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://playground.deaxon.com/css/flex-nav/">Flexible Navigation</a><br />An interesting technique for a navigation that uses only CSS transforms and transitions and no JavaScript.</p><p class="showcase"><a href="http://playground.deaxon.com/css/flex-nav/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/deaxon.jpg" width="500" height="300" alt="Deaxon in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://playground.deaxon.com/css/circle-zoom/">Circle Zoom</a><br />A very nice hover effect: the Twitter icon has a circle as a background and the circle increases its radius when the users hovers the mouse over it.</p><p class="showcase"><a href="http://playground.deaxon.com/css/circle-zoom/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/circle.jpg" width="500" height="300" alt="Circle in CSS: Innovative Techniques and Practical Solutions"  /></a></p><h3>Last Click</h3><p><a href="http://media.miekd.com/css3memory/">CSS3 Memory</a><br />A game of memory in which you will have to find three matching cards (as a tribute to the CSS transitions).</p><p class="showcase"><a href="http://media.miekd.com/css3memory/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-199.jpg" width="500" height="300" alt="New-css-techniques-199 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://2011.beercamp.com/">CSS 3D Scrolling @ BeerCamp at SXSW 2011</a><br />Now, that's innovative: while you are scrolling down the page, the site appears to have a 3D scrolling effect. And it has a nice Inception reference. Can you discover it?</p><p class="showcase"><a href="http://2011.beercamp.com/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/new-css-techniques-175.jpg" width="500" height="300" alt="New-css-techniques-175 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><p><a href="http://www.smashingmagazine.com/2010/10/12/50-new-useful-css-techniques-tutorials-and-tools/">50 New Useful CSS Techniques, Tutorials and Tools</a><br />The previous round-up of CSS techniques on Smashing Magazine. In this post we present recently released CSS techniques, tutorials and tools for you to use and enhance your workflow, thus improving your skills.</p><p class="showcase"><a href="http://www.smashingmagazine.com/2010/10/12/50-new-useful-css-techniques-tutorials-and-tools/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/css-237.jpg" width="500" height="300" alt="Css-237 in CSS: Innovative Techniques and Practical Solutions"  /></a></p><hr /><p><small>© Vitaly Friedman for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2011. | <a href="http://www.smashingmagazine.com/2011/02/16/css-useful-coding-techniques-and-design-solutions/">Permalink</a> | <a href="http://www.smashingmagazine.com/2011/02/16/css-useful-coding-techniques-and-design-solutions/#comments">Post a comment</a> | <a href="http://shop.smashingmagazine.com/" title="Smashing Shop">Smashing Shop</a> | <a href="http://www.smashingmagazine.com/the-smashing-network/" title="Smashing Network">Smashing Network</a> | <a href="http://www.smashingmagazine.com/about/" title="About Us">About Us</a><br/> Post tags: <a href="http://www.smashingmagazine.com/tag/css/" rel="tag">CSS</a><br/> </small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/css-innovative-techniques-and-practical-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Typography Tips For Adobe Illustrator</title>
		<link>http://www.creativemanstudio.com/blog/useful-typography-tips-for-adobe-illustrator/</link>
		<comments>http://www.creativemanstudio.com/blog/useful-typography-tips-for-adobe-illustrator/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 14:45:20 +0000</pubDate>
		<dc:creator>pcontreras</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=84094</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt="" /></a></div></td></tr></table><p>Typography is not only an all-important aspect of design, it is also an art form in and of itself. Choosing the right font, the perfect spacing and even the correct shape of text can be an important factor as to whether a project fails or succeeds. Although Illustrator is not really used for multiple-paged projects, many would agree that it is one of the most powerful applications for creating vector graphics, such as logos, and it is also often used for one-page documents, such as business cards, posters, or postcards.</p><p><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/"><img class="alignnone size-full wp-image-85495" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/08_inserting-glyphs-into-text-lines.jpg" alt="Screenshot" width="485" height="350" /></a></p> <p>Since we can easily transfer graphics from Illustrator to Photoshop and InDesign, designers often use Illustrator to create vector type that they can then incorporate into projects in another program. For instance, you can <strong>create a nice type design within Illustrator</strong>, then add some extra effects in Photoshop. Or you may need to design a text illustration within Illustrator to place within your brochure project in InDesign.</p>]]></description>
			<content:encoded><![CDATA[<table width="650"><tr><td width="650"><div style="width:650px;"> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="Advertisement in Useful Typography Tips For Adobe Illustrator" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt=" in Useful Typography Tips For Adobe Illustrator"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt=" in Useful Typography Tips For Adobe Illustrator"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt=" in Useful Typography Tips For Adobe Illustrator"  /></a></div></td></tr></table><p>Typography is not only an all-important aspect of design, it is also an art form in and of itself. Choosing the right font, the perfect spacing and even the correct shape of text can be an important factor as to whether a project fails or succeeds. Although Illustrator is not really used for multiple-paged projects, many would agree that it is one of the most powerful applications for creating vector graphics, such as logos, and it is also often used for one-page documents, such as business cards, posters, or postcards.</p><p>Since we can easily transfer graphics from Illustrator to Photoshop and InDesign, designers often use Illustrator to create vector type that they can then incorporate into projects in another program. For instance, you can <strong>create a nice type design within Illustrator</strong>, then add some extra effects in Photoshop. Or you may need to design a text illustration within Illustrator to place within your brochure project in InDesign.</p><p>If you have never taken the time to explore the type side of Illustrator, you may be surprised at the powerful tools that Illustrator provides for working with type. Similar text features found in Photoshop and InDesign are also available in Illustrator &mdash; only Illustrator comes with its own unique set of typographical features as well. So for those of you who use another Adobe Suite program, you will easily catch on to Illustrator&#8217;s type idiosyncrasies.</p><p>No matter what your purpose for working with type in Illustrator is, as a designer, you will not only improve your work, but also save valuable time by knowing the different typographical tools available. Here, we will focus on some of the most important aspects of typography that every Illustrator user should know:</p><ol><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#01">Metric vs. Optical Kerning</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#02">Roman Hanging Punctuation</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#03">The Glyphs Panel</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#04">Hyphens and Dashes</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#05">Styles Panels</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#06">Placing Type on a Path</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#07">Point Type vs. Area Type</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#08">Creating Columns of Text</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#09">Text Flow Between Containers</a></li><li><a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#10">Scaling Area Type Numerically</a></li></ol><p><a name="01"></a></p><h3>1. Metric Vs. Optical Kerning</h3><p><a href="http://www.computerarts.co.uk/tutorials/2d__and__photoshop/perfect_your_kerning_skills">Kerning</a> is an important aspect of design. It has to do with the adjustment of space between letters in order to improve the visual treatment of typography, and Illustrator provides the right kerning tools for designers. In more recent versions of Illustrator&#8217;s CS series, <strong>three automatic kerning options</strong> are available: “Auto” (also known as metric), “Optical” and “Metrics – Roman Only.” In addition, manual kerning is available. All have their place in design, but knowing which one to use when can be confusing without some basic knowledge.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/01_Kerning.jpg"><img class="alignnone size-full wp-image-85474" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/kerning.gif" alt="Kerning in Useful Typography Tips For Adobe Illustrator" width="500" height="163" /></a></p><p><strong>Auto</strong>, or <strong>metrics</strong>, <strong>kerning</strong> is built into type using kern pairs; for instance, all PostScript fonts have kern pairs built into them. Illustrator interprets this kerning code to determine how much space to put between certain letter combinations, such as “WA,” “LA,” “To” and “Ty.”</p><p><strong>Optical kerning</strong> is also an automatic kerning option built into type but slightly different than the Auto option.  It uses the shapes of the letters to determine the space to put between characters. Optical kerning works well when combining letters of more than one font or when a font has little to no kerning built in. Use manual kerning where possible, since it provides the highest level of control. Most often, though, one would use manual kerning only in display copy, headlines, business cards and other short blocks of text.</p><p>The <strong>“Metrics – Roman Only”</strong> option, which was added into Illustrator in the CS4 version, is for Japanese typography. This option adds kerning only to Roman glyphs or any character that rotates in vertical text. Basically, it works with Latin characters, such as Basic Latin or Latin Extended, and the half-width Katakana. To switch to Optical kerning, first select the text you wish to change. Then, under the Characters palette (<code>Window</code> → <code>Type</code> → <code>Character</code>), click on the Kerning drop-down menu. Then select “Optical.”</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/02_optical-kerning.jpg"><img class="alignnone size-full wp-image-84104" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/02_optical-kerning.jpg" alt="02 Optical-kerning in Useful Typography Tips For Adobe Illustrator" width="539" height="260" /></a></p><p>Or, if you would like to manually kern letters yourself, place the cursor between two letters, and choose a value in the Character palette:</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/03_manual-kerning.jpg"><img class="alignnone size-full wp-image-84103" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/03_manual-kerning.jpg" alt="03 Manual-kerning in Useful Typography Tips For Adobe Illustrator" width="533" height="249" /></a></p><p>To turn off kerning between selected characters, set it to “0”:</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/04_turn-kerning-off.jpg"><img class="alignnone size-full wp-image-84105" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/04_turn-kerning-off.jpg" alt="04 Turn-kerning-off in Useful Typography Tips For Adobe Illustrator" width="542" height="256" /></a></p><p>Keep in mind that to adjust the value between entire groups of letters, you will have to use the tracking settings in the Character palette. The tracking is adjusted in the drop-down menu located to the right of the Kerning drop-down menu. Hover your mouse over the menu to see “Set the tracking for the selected characters,” as in the screenshot below:</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/05_tracking.jpg"><img class="alignnone size-full wp-image-85477" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/05_tracking.jpg" alt="05 Tracking in Useful Typography Tips For Adobe Illustrator" width="530" height="264" /></a></p><p>Illustrator&#8217;s default kerning is “Auto,” so simply select this if you would like to turn it back on.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/06_auto-kerning.jpg"><img class="alignnone size-full wp-image-85478" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/06_auto-kerning.jpg" alt="06 Auto-kerning in Useful Typography Tips For Adobe Illustrator" width="541" height="251" /></a></p><p><strong>Useful Tip:</strong> One excellent way to save yourself some time while designing is to use Illustrator&#8217;s keyboard shortcuts to change manual kerning and tracking settings. To change the kerning between two characters, simply place the cursor between the two letters. Then use <code>Alt/Option</code> + <code>left/right</code> arrow. The kerning will decrease with <code>Alt/Option</code> + <code>left</code> arrow and increase with <code>Alt/Option</code> + <code>right</code> arrow.</p><p>To change the tracking for an entire group of letters, first select the letters you want to change. As with kerning, use <code>Alt/Option</code> + <code>left</code> arrow to decrease tracking and <code>Alt/Option</code> + <code>right</code> arrow to increase tracking.</p><p><a name="02"></a></p><h3>2. Roman Hanging Punctuation</h3><p>Roman hanging punctuation will give your blocks of text a clean appearance, taking your typography from amateur to pro. But what exactly is this tool that is hardly talked about? Turning on the Roman hanging option in Illustrator will make the text line up evenly by “hanging” quotation marks in the margin. Otherwise, quotations are set flush with text, within the margin.</p><p>To turn on Roman hanging punctuation, open the Paragraph tool panel, and click on the arrow on the upper right of the box. A drop-down menu will appear in which you can choose “Roman Hanging Punctuation.”</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/07_roman-hanging-punctuation.jpg"><img class="alignnone size-full wp-image-86125" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/07_roman-hanging-punctuation.jpg" alt="07 Roman-hanging-punctuation in Useful Typography Tips For Adobe Illustrator" width="479" height="415" /></a></p><p>Keep in mind that you can turn on or off the Roman Hanging Punctuation for entire blocks of text. Just select the blocks of text and use the same drop-down menu to change the setting.</p><p><a name="03"></a></p><h3>3. The Glyphs Panel</h3><p>Glyphs are any characters found within a font family. The Glyphs panel in Illustrator is the place to locate font objects, from normal characters to the special symbols. Whatever font you have selected when you open the glyphs panel is the menu that will be displayed. Fortunately, you do not have to keep exiting the Glyphs panel every time you would like to see the glyphs for another font or see glyphs similar to the one you&#8217;ve selected. You can also keep the Glyphs panel open while moving your cursor to different locations in the document.</p><p>To open the Glyphs Panel, go to <code>Window</code> → <code>Type</code> → <code>Glyphs</code>. Click on a glyph to select it; double-click to insert it in the line of text. Illustrator places the character wherever your blinking text cursor is located.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/08_inserting-glyphs-into-text-lines.jpg"><img class="alignnone size-full wp-image-85495" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/08_inserting-glyphs-into-text-lines.jpg" alt="08 Inserting-glyphs-into-text-lines in Useful Typography Tips For Adobe Illustrator" width="485" height="350" /></a></p><p>Hover your mouse over glyphs to see the Unicode (the name given to each character in the Glyphs panel); the Unicode is displayed at the top of the panel. Once you have found the glyph you would like to use, simply double-click on the character to insert it into your current project.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/09_unicode.jpg"><img class="alignnone size-full wp-image-85494" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/09_unicode.jpg" alt="09 Unicode in Useful Typography Tips For Adobe Illustrator" width="488" height="296" /></a></p><p>To see a different font, simply choose a different family and style from the drop-down boxes at the bottom of the panel.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/10_change-font.jpg"><img class="alignnone size-full wp-image-85490" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/10_change-font.jpg" alt="10 Change-font in Useful Typography Tips For Adobe Illustrator" width="479" height="432" /></a></p><p>To see the glyphs in a larger or smaller preview display, click on the zoom in and out buttons located in the lower-right corner of the panel.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/11_zoom-in-out.jpg"><img class="alignnone size-full wp-image-85491" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/11_zoom-in-out.jpg" alt="11 Zoom-in-out in Useful Typography Tips For Adobe Illustrator" width="487" height="317" /></a></p><p>In the “Show” menu at the top of the panel, you can limit the type of characters displayed in that font; for instance, “Oldstyle Figures.”</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/12_oldstyle-figures.jpg"><img class="alignnone size-full wp-image-85492" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/12_oldstyle-figures.jpg" alt="12 Oldstyle-figures in Useful Typography Tips For Adobe Illustrator" width="479" height="290" /></a></p><p>You might notice that some characters in a font include an arrow in the lower-right corner of the character box in the Glyphs panel. This arrow indicates that alternate glyphs are available for this character. To access these alternates, simply click and hold the character. Drag your cursor over the alternate glyph you would like to use, and release the mouse. The glyph should now be inserted in the text.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/13_alternate-glyphs.jpg"><img class="alignnone size-full wp-image-85493" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/13_alternate-glyphs.jpg" alt="13 Alternate-glyphs in Useful Typography Tips For Adobe Illustrator" width="482" height="294" /></a></p><p><a name="04"></a></p><h3>4. Hyphens and Dashes</h3><p>One of the easiest ways to disqualify yourself as a professional designer is by using hyphens and dashes incorrectly. The rules are somewhat tedious but fairly easy to learn and remember.</p><p>A hyphen is the shortest in length and is located on the keyboard next to the “+” sign. It has three functions. It is used when a word is split at the end of a line of text. It is used to join two words together to create a compound word, such as “fun-loving dad” and “anti-American.” A hyphen is also used with two-word numbers, such as forty-two. If in doubt, look up the word in a dictionary and use a hyphen if the word is not present. Example: &#8220;Twenty-two dollars is all that your un- <em>line break</em> loving dad will give to a well-intentioned suitor.&#8221;</p><p>An en dash is the second longest in length and is used to show a span of time or a numerical range; for example, 5–9, July–September, 1:00–8:00. In the Glyphs panel in Illustrator, the en dash Unicode is <code>U+2013</code>. Example: &#8220;Our vacation is from June 13–18.&#8221;</p><p>An em dash is the longest in length of the three and is used to show a break in thought. For instance, “Down the road—and a long winding road it was—they traveled as quickly as possible.” In Illustrator, the em dash Unicode is <code>U+2014</code>. Example: &#8220;We gathered our supplies — all eight truck loads — and started slowly up the bypass.&#8221;</p><p><a name="05"></a></p><h3>5. Styles Panels</h3><p>When working with large amounts of text in Illustrator, you do not have to keep applying the same font styles manually to every heading and block of text. You can simply save your settings using the Character Styles panel or the Paragraph Styles panel. Both can be found under <code>Window</code> → <code>Type</code>.</p><p>To set a style, simply type your heading or paragraph using the font styles you want to save. Then go to <code>Window</code> → <code>Type</code> → <code>Character Styles</code>, or <code>Window</code> → <code>Type</code> → <code>Paragraph</code> Styles. A Styles panel box will appear, and in the upper-right corner will be a small arrow, which is the Styles menu. To create your own name for the style, choose “New Character” or “Paragraph Style,” type a name, and click OK.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/15_new-character-style.jpg"><img class="alignnone size-full wp-image-86126" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/15_new-character-style.jpg" alt="15 New-character-style in Useful Typography Tips For Adobe Illustrator" width="580" height="426" /></a></p><p>When you would like to add your new Character or Paragraph Style to text, select the text. Then click on the style that you created in the Style panel box. The style you saved will now be added to the text.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/15_new-character-style.jpg"><img class="alignnone size-full wp-image-86128" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/15_new-character-style.jpg" alt="15 New-character-style in Useful Typography Tips For Adobe Illustrator" width="580" height="426" /></a></p><p>To edit a style, click on the style in the panel box, then click to the Character and Paragraph Style options in the drop-down menu, or simply double-click on the style you want to change.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/17_select-character-style-options.jpg"><img class="alignnone size-full wp-image-86129" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/17_select-character-style-options.jpg" alt="17 Select-character-style-options in Useful Typography Tips For Adobe Illustrator" width="586" height="426" /></a></p><p>Now on the left side of the dialog box that pops open, click on a formatting category. Make the changes you need, click OK, and all text that you&#8217;ve applied to this style will be changed. Keep in mind that if text is selected, the changes will be made to it only. Click on the Selection tool and then click anywhere on the work desk to make sure that text is not selected before attempting to change the style of all text.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/18_make-character-style-changes.jpg"><img class="alignnone size-full wp-image-86130" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/02/character-style.gif" alt="Character-style in Useful Typography Tips For Adobe Illustrator" width="500" height="359" /></a></p><p>To delete a style, select it in the Character or Paragraph Styles panel. Then click the “Delete” button in the bottom-right corner of the panel. Or just drag the style onto the “Delete” button. The formatting of text associated with this style will not change, but a style will no longer be applied to this text.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/19_delete-character-style.jpg"><img class="alignnone size-full wp-image-86131" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/19_delete-character-style.jpg" alt="19 Delete-character-style in Useful Typography Tips For Adobe Illustrator" width="574" height="217" /></a></p><p><a name="06"></a></p><h3>6. Placing Type On a Path</h3><p>Most Illustrator users know that type can be placed on a path to create shaped text or text that wraps around an object. The technique for applying text to a path is different depending on the path, though. Type can be placed on either an open path, which is a line with a beginning and end, or a closed path, such as a circle or square.</p><h4>Open Paths</h4><p>To place type on an open path (i.e. a line with a beginning and end), begin by creating a path, such as a curved line. Make sure to select the Type tool, and then move your cursor over the path until the cursor changes to a Type on a Path icon, which has a line through it.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/20_type-on-a-path-cursor.jpg"><img class="alignnone size-full wp-image-85497" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/20_type-on-a-path-cursor.jpg" alt="20 Type-on-a-path-cursor in Useful Typography Tips For Adobe Illustrator" width="466" height="369" /></a></p><p>Then just click on the path, and you will have created a Path Type object. The Stroke objects will be gone, and a blinking cursor will appear in which you can type your message.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/21_type-on-open-path.jpg"><img class="alignnone size-full wp-image-85498" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/21_type-on-open-path.jpg" alt="21 Type-on-open-path in Useful Typography Tips For Adobe Illustrator" width="479" height="393" /></a></p><p>To make any changes to your open path type, choose the Selection tool and click on the path. In and out ports (small white boxes) will appear at either end of the path and a line in the center and on the far left and right. Basically, Illustrator is now treating the path as it would area type. Drag one of the lines to make the text path shorter or longer; make sure that your cursor is an arrow with a line-and-arrow symbol next to it.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/22_handles-for-type-on-a-path.jpg"><img class="alignnone size-full wp-image-85499" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/22_handles-for-type-on-a-path.jpg" alt="22 Handles-for-type-on-a-path in Useful Typography Tips For Adobe Illustrator" width="477" height="397" /></a></p><p>You can change the actual type just as you would any other area type, including by changing the font size. Doing this, though, may make the text extend outside of the area type’s boundaries. If this happens, a red plus sign will appear.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/23_type-on-path-plus-sign.jpg"><img class="alignnone size-full wp-image-85500" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/23_type-on-path-plus-sign.jpg" alt="23 Type-on-path-plus-sign in Useful Typography Tips For Adobe Illustrator" width="469" height="377" /></a></p><p>If you click on the plus sign, the cursor will change to a linked container cursor (it looks like a text box). Then, click on another area in your project to create another open path line of the same size and shape as your first. New text will continue to flow onto this new line.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/24_new-open-path-container.jpg"><img class="alignnone size-full wp-image-85501" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/24_new-open-path-container.jpg" alt="24 New-open-path-container in Useful Typography Tips For Adobe Illustrator" width="518" height="489" /></a></p><p>Or simply drag the beginning and end lines to make text fit on the path:</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/25_extend-open-path-text-line.jpg"><img class="alignnone size-full wp-image-85503" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/25_extend-open-path-text-line.jpg" alt="25 Extend-open-path-text-line in Useful Typography Tips For Adobe Illustrator" width="476" height="392" /></a></p><p>Make changes to the actual path that the text sits on by choosing the Direct Selection tool and then clicking on the path. You can now lengthen or shorten the path or change the shape, just as you would with any other path.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/26_change-path-shape.jpg"><img class="alignnone size-full wp-image-85504" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/26_change-path-shape.jpg" alt="26 Change-path-shape in Useful Typography Tips For Adobe Illustrator" width="509" height="653" /></a></p><p>You can also move the type to sit underneath the path by dragging the center line to the opposite side of the path. Or go to <code>Type</code> → <code>Type on a Path</code> → <code>Type on a Path Options</code>. In the box that appears, check the “Flip” box and click OK.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/27_move-type-underneath-path.jpg"><img class="alignnone size-full wp-image-85505" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/27_move-type-underneath-path.jpg" alt="27 Move-type-underneath-path in Useful Typography Tips For Adobe Illustrator" width="516" height="232" /></a></p><p>To flip type over, go to <code>Type</code> → <code>Type on a Path</code> → <code>Type on a Path Options</code>. Select the Flip box and then select “Ascender” in the “Align to Path” menu. Other changes can be made in this dialog box as well: change the effect, choose other path alignment options or adjust the spacing.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/28_flip-type-on-open-path.jpg"><img class="alignnone size-full wp-image-85506" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/28_flip-type-on-open-path.jpg" alt="28 Flip-type-on-open-path in Useful Typography Tips For Adobe Illustrator" width="540" height="405" /></a></p><h4>Closed Paths</h4><p>The confusing part of placing type on a closed path is that the start and end points are in the same place. With an open path, your starting point is wherever you click with the Type tool to create a Path Type object, and the end point is the end of the path. On a closed path, both the start and end points are wherever you click, because the object creates a continuous line. The center line on a closed path, such as a circle, would then be at the bottom of the circle if your start point is at the top. To place type on a closed path, you will have to choose the Type on a Path tool by clicking on the Type tool and dragging to pull out the Type menu.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/29_Type-on-a-path-tool.jpg"><img class="alignnone size-full wp-image-86045" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/29_Type-on-a-path-tool.jpg" alt="29 Type-on-a-path-tool in Useful Typography Tips For Adobe Illustrator" width="495" height="460" /></a></p><p>Then click on the path where you would like the text to start and begin typing. Once again, make sure the cursor changes to the Type on a Path symbol.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/30_type-on-a-closed-path.jpg"><img class="alignnone size-full wp-image-86047" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/30_type-on-a-closed-path.jpg" alt="30 Type-on-a-closed-path in Useful Typography Tips For Adobe Illustrator" width="408" height="383" /></a></p><p>Just as with an open path, you can change the location of the start and end points and, therefore, move the location of the text on the object.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/31_move-closed-type.jpg"><img class="alignnone size-full wp-image-86055" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/31_move-closed-type.jpg" alt="31 Move-closed-type in Useful Typography Tips For Adobe Illustrator" width="388" height="380" /></a></p><p>You can also move type underneath the line or flip type over the same way as you would with open type. Simply go to <code>Type</code> → <code>Type on a Path</code> → <code>Type on a Path Options</code>, and change the settings to get the desired effect. Or you can make changes by dragging the center line.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/32_flip-type-on-closed-path.jpg"><img class="alignnone size-full wp-image-86061" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/32_flip-type-on-closed-path.jpg" alt="32 Flip-type-on-closed-path in Useful Typography Tips For Adobe Illustrator" width="345" height="341" /></a></p><p><a name="07"></a></p><h3>7. Point Type vs. Area Type</h3><p>Point type, created by selecting the Type tool, is so called because it adds text to a certain point in an image. Area type, created by selecting the Area Type tool, adds text to fill a specified area of an image.</p><p>Point type is often used for headlines and other single lines of text. The more you type, the longer the text line becomes. To move text to another line, you must manually press Enter or Return on the keyboard. Area type is used for paragraphs of text and is surrounded by a bounding box. As you type, the text automatically flows to fill the box. The bounding box in area type will have two large boxes, called ports, in addition to the normal bounding box handles. These ports are the in and out boxes from which text flows between area type containers.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/33_point-and-area-type.jpg"><img class="alignnone size-full wp-image-86066" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/33_point-and-area-type.jpg" alt="33 Point-and-area-type in Useful Typography Tips For Adobe Illustrator" width="545" height="222" /></a></p><p>When selecting point type with the Selection tool and if you have selected “Show Bounding Box” in the View drop-down menu, a bounding box will appear surrounding the text. However, when changing the shape or size of the bounding box with point type, the text will become distorted because no shape is holding the text. On the other hand, changing the size or shape of area text will simply change the way the text fills the bounding box.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/34_changing-shape-of-point-and-area-type.jpg"><img class="alignnone size-full wp-image-84125" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/34_changing-shape-of-point-and-area-type.jpg" alt="34 Changing-shape-of-point-and-area-type in Useful Typography Tips For Adobe Illustrator" width="548" height="262" /></a></p><p><a name="08"></a></p><h3>8. Creating Columns of Text</h3><p>Any area type can easily be divided into columns, or even rows, whenever needed. First, create the area type, and then select it. Go to <code>Type</code> → <code>Area Type Options</code>. In the box that appears, you will see options for changing the settings of both rows and columns, as well as for resizing the area type.</p><p>Change the number of rows or columns by changing the Number settings underneath the Row or Column settings. The “Span” changes the width of individual rows or columns, and the “Gutter” changes the distance between each row or column.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/35_columns.jpg"><img class="alignnone size-full wp-image-86080" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/35_columns.jpg" alt="35 Columns in Useful Typography Tips For Adobe Illustrator" width="541" height="564" /></a></p><p>If you select the “Fixed” box, then you can resize the area, and the number of rows or columns will change, not their width.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/36_fixed-box-selected.jpg"><img class="alignnone size-full wp-image-86085" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/36_fixed-box-selected.jpg" alt="36 Fixed-box-selected in Useful Typography Tips For Adobe Illustrator" width="631" height="519" /></a></p><p>With the Fixed box deselected, the size of the rows and columns will increase or decrease when resizing, but the number of rows or columns will remain the same.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/37_fixed-box-deselected.jpg"><img class="alignnone size-full wp-image-86093" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/37_fixed-box-deselected.jpg" alt="37 Fixed-box-deselected in Useful Typography Tips For Adobe Illustrator" width="643" height="516" /></a></p><p>If you break the text into both columns and rows, rather than just one or the other, then you will want to choose the way text flows between columns and rows in the Options section. Selecting “By Rows” will cause the text to be read from left to right, first in the top row and then in the bottom row. Selecting “By Columns” will cause the text to be read left to right, first in the left column and then in the right column.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/38_text-flow.jpg"><img class="alignnone size-full wp-image-84127" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/38_text-flow.jpg" alt="38 Text-flow in Useful Typography Tips For Adobe Illustrator" width="538" height="579" /></a></p><p><a name="09"></a></p><h3>9. Text Flow Between Containers</h3><p>With certain projects, you may need to make text flow from one area type container to the next. For instance, you may have created an area type frame in the exact size you need, but as you type, the text “overflows,” which Illustrator alerts you about with a red box with a plus sign inside.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/39_text-overflow.jpg"><img class="alignnone size-full wp-image-84128" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/39_text-overflow.jpg" alt="39 Text-overflow in Useful Typography Tips For Adobe Illustrator" width="576" height="108" /></a></p><p>Clicking on this plus sign with the Direct Selection tool will change your cursor to the linked container symbol.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/40_click-on-plus-sign.jpg"><img class="alignnone size-full wp-image-86096" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/40_click-on-plus-sign.jpg" alt="40 Click-on-plus-sign in Useful Typography Tips For Adobe Illustrator" width="576" height="108" /></a></p><p>Click again on the artboard and Illustrator will create a new container of the exact same size as the first. Text will now continue to “flow” from the previous container into this new one.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/41_new-container-same-size.jpg"><img class="alignnone size-full wp-image-84129" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/41_new-container-same-size.jpg" alt="41 New-container-same-size in Useful Typography Tips For Adobe Illustrator" width="455" height="134" /></a></p><p>If you would like to create a container of different proportions, though, then click and drag on the artboard until the container is the size you desire.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/42_new-container-different-size.jpg"><img class="alignnone size-full wp-image-86099" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/42_new-container-different-size.jpg" alt="42 New-container-different-size in Useful Typography Tips For Adobe Illustrator" width="467" height="232" /></a></p><p><a name="10"></a></p><h3>10. Scaling Area Type Numerically</h3><p>Instead of resizing an area type bounding box by using the handles, you can scale it numerically, making for a more accurate size that can be repeated. Go to <code>Type</code> → <code>Area Type Options</code>, and enter the size of box you need.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/43_scale-with-area-type-options.jpg"><img class="alignnone size-full wp-image-84131" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/43_scale-with-area-type-options.jpg" alt="43 Scale-with-area-type-options in Useful Typography Tips For Adobe Illustrator" width="562" height="585" /></a></p><p>Or you can go to <code>Object</code> → <code>Transform</code> → <code>Scale</code> to size a bounding box numerically. Keep in mind that these techniques will also change the scale of the text. To keep text the same while changing the box only, click on a side of the frame using the Direct Selection tool, and then scale the bounding box. The text should remain the same while the size of the bounding box changes.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/44_scale-with-transform.jpg"><img class="alignnone size-full wp-image-86134" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2011/01/44_scale-with-transform.jpg" alt="44 Scale-with-transform in Useful Typography Tips For Adobe Illustrator" width="568" height="321" /></a></p><h3>Type Tool Shortcuts</h3><p>Keyboard shortcuts will make your work in Adobe Illustrator go that much faster. Memorize each of the following to improve your workflow:</p><ul><li><code>Shift</code> + <code>Control/Command</code> + <code>O</code> : Create outlines.</li><li><code>Alt</code> + <code>Control/Command</code> + <code>I</code> : Show or hide hidden characters.</li><li><code>T</code> : This way you can select the Type tool faster.</li><li><code>Control/Command</code> + <code>T</code> : Show or hide the Character panel.</li><li><code>Shift</code> + <code>Control/Command</code> + <code>T</code> : Show or hide the Tabs panel.</li><li><code>Alt</code> + <code>Control/Command</code> + <code>T</code> : Show or hide the Paragraph panel.</li><li><code>Alt</code> + <code>Shift</code> + <code>Control/Command</code> + <code>T</code> : Show or hide the Open Type panel.</li><li><code>Shift</code> : Hold down while the Type tool is selected to switch between horizontal and vertical text.</li><li><code>Escape</code> : Press while typing to escape from the type object. The Selection tool and type object will also be selected.</li></ul><p>Keep in mind that these are only type tool shortcuts and commands. Print out a complete list of shortcuts from <a href="http://www.keyxl.com/l?t=Illustrator">KeyXL</a> to have on hand if needed.</p><h3>Other Resources</h3><p>You may be interested in the following articles and related resources:</p><ul><li><a href="http://vector.tutsplus.com/tutorials/tools-tips/illustrators-type-tool-a-comprehensive-introduction/">Illustrator’s Type Tool: A Comprehensive Introduction</a>, Vector Tuts+<br /> Learn about Illustrator&#8217;s Type tool in this comprehensive introduction.</li><li><a href="http://iit.bloomu.edu/multimedia/illustrator/illustrator/typetool.htm#type4">Vertical Type Tools</a>, Bloomsburg University, IT Department<br /> Another excellent article with basic tips on using Illustrator&#8217;s Type Tool.</li><li><a href="http://help.adobe.com/en_US/Illustrator/14.0/WS714a382cdf7d304e7e07d0100196cbc5f-6409a.html">Using Adobe Illustrator CS4: Type</a>, Adobe<br /> Look up specific help on type in Illustrator from Adobe itself.</li></ul><p><em>(al) (ik) (vf)</em></p><hr /><p><small>© Tara Hornor for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2011. | <a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/">Permalink</a> | <a href="http://www.smashingmagazine.com/2011/02/15/useful-typography-tips-for-adobe-illustrator/#comments">Post a comment</a> | <a href="http://shop.smashingmagazine.com/" title="Smashing Shop">Smashing Shop</a> | <a href="http://www.smashingmagazine.com/the-smashing-network/" title="Smashing Network">Smashing Network</a> | <a href="http://www.smashingmagazine.com/about/" title="About Us">About Us</a><br/> Post tags: <a href="http://www.smashingmagazine.com/tag/illustrator/" rel="tag">illustrator</a>, <a href="http://www.smashingmagazine.com/tag/typography/" rel="tag">typography</a><br/> </small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/useful-typography-tips-for-adobe-illustrator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preparing Artwork for Screen Printing in Adobe Illustrator</title>
		<link>http://www.creativemanstudio.com/blog/preparing-artwork-for-screen-printing-in-adobe-illustrator/</link>
		<comments>http://www.creativemanstudio.com/blog/preparing-artwork-for-screen-printing-in-adobe-illustrator/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 12:39:27 +0000</pubDate>
		<dc:creator>pcontreras</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=71425</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt="" /></a></div></td></tr></table><p>Getting t-shirts printed is an ideal way to promote your business, organization or event. They are a promotional item that people can actually use, and they have the added bonus of being an advertisement for you. In this post, Adobe Illustrator will be used to create a three-color screen print using a fictional company logo, and have it set up to allow a screen printer to easily print the color separations that create the separate screens for each color print.</p><p><a href="http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/12/rocket.jpg" alt="Creating a new Spot Color Swatch" width="500" height="319" /></a></p> <p>Although some printers prefer to create their own separations, it’s always good to understand the process. Be sure to communicate with your printer as they will specify their requirements, and will often give you tips for avoiding potential issues in the process.</p>]]></description>
			<content:encoded><![CDATA[<table width="650"><tr><td width="650"><div style="width:650px;"> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="Advertisement in Preparing Artwork for Screen Printing in Adobe Illustrator" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt=" in Preparing Artwork for Screen Printing in Adobe Illustrator"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt=" in Preparing Artwork for Screen Printing in Adobe Illustrator"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt=" in Preparing Artwork for Screen Printing in Adobe Illustrator"  /></a></div></td></tr></table><p>Getting t-shirts printed is an ideal way to promote your business, organization or event. They are a promotional item that people can actually use, and they have the added bonus of being an advertisement for you. In this post, Adobe Illustrator will be used to create a three-color screen print using a fictional company logo, and have it set up to allow a screen printer to easily print the color separations that create the separate screens for each color print.</p><p>Although some printers prefer to create their own separations, it’s always good to understand the process. Be sure to communicate with your printer as they will specify their requirements, and will often give you tips for avoiding potential issues in the process.</p><h3>Printing Techniques</h3><p>As the t-shirt is going to be printed in three colors, we have to create separate artwork for each layer of color. Each of these layers interact with each other to form a complete image.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2008/11/images22.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2008/11/images22.jpg" alt="Images22 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Examples of Trap, Knockout and Overprint</em></p><p>There are three artwork techniques commonly used for this type of printing: Trap, Knockout and Overprint. The Trap technique is when the bottom color &#8220;bleeds&#8221; under the top color, ensuring no gaps are left from inaccurate printing of the second color (when the so-called &#8220;registration&#8221; between the colors is &#8220;off&#8221;).</p><p>Screen printing is not always an exact printing technique, especially when printing onto fabric surfaces; for this reason the Knockout technique<em> </em>is rarely used, as it relies on printing a color precisely in a gap left on the bottom color. The third technique, Overprint, is the easiest to achieve as the top color prints directly on top of the bottom color; often this produces a new color, as the top ink color is not always opaque.</p><h3>Preparing Your Artwork File</h3><h4>1. Create Layers for Each Color</h4><p>The most reliable way to produce artwork for screen printing is to manually prepare it in Adobe Illustrator. Each of the three colors is going to form a separate artwork in a separate layer, using elements from the main image for each color. Using Layers does not affect how your artwork is output by your screen printer; it just makes it easier for you to work on.</p><p>Opening the vector artwork in Illustrator presents the graphic in Layer 1. Select the drop-down menu in the Layers window and select Duplicate Layer twice, to produce three layers of the same graphic; name the three layers after their respective colors, as this will help prevent confusion later on. Ensure the order of the colors is correct: the bottom layer is White; the next color layer is Orange; and the top layer is the Dark Red, which will be printed last, on top of the other colors.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images3.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images3.jpg" alt="Images3 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Layers being created and renamed</em></p><h4>2. Create a Temporary Background Color Layer</h4><p>At this stage — because the artwork is being prepared to be printed on a dark t-shirt — create a fourth layer for a temporary background color and name it Temporary Background. A rectangle is drawn the full size of the art board, and given a dark color; this layer will be removed later in the process. Drag the layer to the bottom of the layers, and Lock it. Each color of your artwork produces a separate screen, and the order in which the colors are printed is usually from the lightest to the darkest color.</span></span></p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images4.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images4.jpg" alt="Images4 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>A Temporary Background layer is created</em></p><h4>3. Remove Excess Objects From the Layer</h4><p>The first layer to be worked on, is the bottom White layer. Hide the Orange and Dark Red layers by clicking the Eye icon next to their layers, and make sure the White layer is selected in the Layers window by clicking on its name. As the artwork layer was duplicated in full, all the objects of the graphic are on this layer; some objects must be removed, leaving the shapes that form the white outline of the rocket, the text, and the orange fan shapes used in the background.</p><h4>4. Outline All Strokes</h4><p>The rocket outline is a solid shape so no further work is needed on the rocket, but the white outline of the text is a thick stroke applied to the text shapes; working with strokes can be unpredictable, so it’s best to create outlines from the stroke by selecting the text and choosing <code>Object ? Path ? Outline Stroke</code>. This ensures consistency if the artwork needs to be resized (Strokes can often be pushed out of proportion when resized with the Scale tool).</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images5.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images5.jpg" alt="Images5 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Outline Stroke on text objects</em></p><h4>5. Create and Apply a Custom Spot Color</h4><p>Select all the objects in this layer and apply a light color to each of them. Avoid using absolute white, as you won’t be able to see the objects when checking Separations later. Apply a color of 20% Yellow to the objects and then, in the Swatches window, select New Swatch from the drop-down menu. Name the swatch &#8220;White base&#8221; and choose Spot Color from the Color Type menu. Even though it’s set to 20% yellow, it will output as a solid color, titled &#8220;White base.&#8221;</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images6.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images6.jpg" alt="Images6 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Creating a new Spot Color Swatch</em></p><p>The swatch now will be in the Swatches window and there will be a dot in the corner to denote a Spot color. The Spot color should be applied to all the objects in the White layer.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images7.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images7.jpg" alt="Images7 in Preparing Artwork for Screen Printing in Adobe Illustrator" selected=" /></a><br /> <em>Spot color in the Swatches window; note the dot in the corner of the selected swatch</em></p><h4>6. Manually Creating Trap</h4><p>Hide the White layer and select the Orange layer. Remove any objects that are not relevant to this color layer, such as the white background objects and the dark red objects. The remaining objects are going to be printed in orange underneath the dark red. Due to the inaccurate nature of screen printing, you can’t simply knock out the shape of the orange elements from the top red color and precisely print over the orange; you have to create Trap between the two colors, to allow for slight &#8220;wobbles&#8221; in color registration.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images8.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images8.jpg" alt="Images8 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Potential mis-registration of two colours, seen between orange and dark red</em></p><p>Select an Orange object and choose <code>Object ? Path ? Offset Path</code>. Offset the path by 1 mm to make the object larger in shape. Oftentimes printers specify how much Trap they require, similar to how they might specify Bleed. On this artwork, the white background outlines the color objects, but if you wanted the white to be printed directly behind the colors, without a white outline, you could offset the path of the White objects by a minus figure (for example <em>-1mm</em>).</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images9.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images9.jpg" alt="Images9 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Left: Before offsetting path by 1mm. Right: After offsetting path to create Trap</em></p><h4>7. Deciding on a Spot Color</h4><p>Once Trap is created for all the orange objects, select all the objects and create a Spot color from the Swatches menu. If you are specifying a Pantone color, name the Spot color with the Pantone Matching System (PMS) reference; otherwise, name it descriptively, in this case, Orange.</p><p>Bear in mind that it is often the case that printers have inks that they keep in stock and you could save some cost by using an indefinite &#8220;orange&#8221; rather than specifying a Pantone color, such as Pantone 179. Additional charges can be placed on inks that have to be bought or mixed for a specific project (especially with smaller print quantities). Talk to your printer and see what your options are, as they might supply you with ink color samples to choose from. Samples are definitely worth paying for; they give you a much better idea of color than swatches do.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images10.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images10.jpg" alt="Images10 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Pantone Colors can be found under <code>Window ? Swatch Libraries ? Color Books</code></em></p><h4>8. Knocking Out for the Trap Below</h4><p>Once the Orange Spot color is applied to the Orange layer, hide the Orange layer and show the top layer, the Dark Red layer. Again, remove unneeded objects such as the white background elements, but leave the Orange highlight objects.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images11.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images11.jpg" alt="Images11 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Artwork with white base color removed</em></p><p>For each object with an Orange highlight, use the Pathfinder tools (<code>Window ? Pathfinder</code>) to Exclude the highlight color, effectively creating a void in the object shapes. This is Knockout; but as we created Trap on the Orange layer objects, we won&#8217;t get any registration issues. When using the Exclude tool, the object takes the color of the top object which is excluded. Change the color back to the original Dark Red using the Eyedropper tool on one of the other other objects.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images12.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images12.jpg" alt="Images12 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>The Exclude tool (circled in green) is excellent for removing shapes from within objects</em></p><p>If the artwork was not being split into layers, the Knockout and Trap could be created automatically using overprinted strokes. This does save time but allows less control on the final print and is more prone to errors (such as forgetting to add Trap to objects).</p><h4>9. Trap is Not Always Necessary</h4><p>There was no Trap created for the Dark Red text on the rocket, as it will be Overprinted on to the Orange. In situations where the printing area is small, it’s best to not create Trap as the area left open below the Overprinting color usually ends up being insignificant.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images13.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images13.jpg" alt="Images13 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>For smaller text and objects, the Trap is too small, so the object is Overprinted instead</em></p><p>Again, select all the Dark Red elements and create a new spot color. If you are using non-specific colors, always supply the printer with a printed proof to allow them to match the color as closely as possible. This printed proof often helps the printer identify issues with your artwork before they move onto the expensive stage of producing film for creating the screens.</p><h4>10. Checking Your Separations</h4><p>Once you have completed the last step, you are now ready to prepare your artwork to send to the screen printer. First, you have to set the Orange and Dark Red colors to overprint. Select <code>Windows ? Separations Preview</code>. From the window that opens, first check the Overprint Preview box and then hide the CMYK separations by clicking the eye icon beside CMYK. The temporary dark background should disappear.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images14.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images14.jpg" alt="Images14 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Separations Preview</em></p><p>Check your separations by hiding each color, one at a time, starting with the Dark Red. You will notice that the Trap you created earlier is gone and the white background is only an outline. This happens because the Orange and Dark Red are not set to overprint the colors below them.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images15.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images15.jpg" alt="Images15 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Separation of the three colors before Overprint is set</em></p><h4>11. Setting Objects to Overprint</h4><p>First, uncheck the Overprint Preview box in the Separations Preview window. Then, hide all the layers except the Orange layer (you can also delete the Temporary Background layer; it’s no longer needed). Select <code>Window ? Attributes</code>. With all the Orange objects selected, check the Overprint Fill box in the Attributes window. Do the same with the Dark Red layer, ensuring all the Dark Red objects are selected when you check the Overprint Fill box in the Attributes window.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images161.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images161.jpg" alt="Images161 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Setting Overprint Fill on two colors</em></p><h4>12. Recheck Your Separations</h4><p>Go back to the Separations Preview window and check the Overprint Preview box. You should now see a color variation on the artwork, where you created Trap earlier. If you also look at the White layer, you’ll see that the whole shape is left intact, due to the Orange and Dark Red set to overprint.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images171.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images171.jpg" alt="Images171 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Left: Trap can be seen by darkened area around Orange. Right: White base returns to a solid shape (shown with temporary background, for illustrative purposes)</em></p><h4>13. Ensure There are No CMYK Objects in the Artwork</h4><p>One thing you have to ensure before saving your file to send to the screen printer, is that there are no CMYK elements in your document. This can be checked easily by choosing <code>File ? Print.</code> Select your printer as Adobe Postscript File and click the Output option on the left side. Select Mode as Separations (Host-Based). On the list of colors below, if the printer icons shows next to any of the process colors (Process Cyan, Process Magenta, Process Yellow or Process Black), you have elements in your artwork which are set in CMYK colors.</p><p><a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images18.jpg"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/11/images18.jpg" alt="Images18 in Preparing Artwork for Screen Printing in Adobe Illustrator" width="550" height="350" /></a><br /> <em>Checking for CMYK objects using the Print dialog box</em></p><h4>14. Finish Up and Send It Off</h4><p>Once you are sure your Spot colors will separate as you expect them to, save your file as PDF and send it along with either a JPEG or printed proof. Sometimes printers request the original Illustrator file, in case they need to make alterations themselves. A good printer will check your files, and let you know if there’s an issue before the process of creating screens begins.</p><h3>Final Note</h3><p>There are many alternative techniques to prepare your artwork for screenprinting; today&#8217;s post concentrates on more manual techniques, for demonstration purposes and also for reliability. Your artwork will probably be output on a different hardware and software configuration to yours; the more complex your artwork, the greater the possibility of errors during output.</p><p>There are two areas you must pay close attention to: make sure you are only using spot colors, and ensure all pieces of your artwork get output by the screen printer as you expect it to.</p><p>Often, a stray object set to a CMYK value is left somewhere on your artwork, which causes one of two issues: either the screen printer outputs an extra color(s) to film (with which the screens are created), possibly incurring extra cost; or the screen printer only outputs the specified Spot colors, and part of your artwork goes missing on the final print. Use the Separations Preview window to check the different layers of your artwork, making sure colors overprint where they should and that all pieces of your artwork are present and correct.</p><p>It’s important to strike up a good relationship with your screen printer, whether they are a local company or one you found on the Web. They can give you vital advice, and could potentially spot mistakes before the screens are made or any t-shirts are printed. Also, if they’re a local business, try to get a tour of their print shop; screen printing is a great process to observe, and being familiar with the process is a great help when making design and preparation decisions.</p><h4>Further Resources</h4><ul><li><a href="http://tv.adobe.com/watch/visual-design/using-the-separations-preview/">Using Separations Preview</a> (Adobe tutorial, with an alternative trapping method toward the end)</li><li><a href="http://vector.tutsplus.com/tutorials/tools-tips/how-to-create-your-own-color-separations-in-adobe-illustrator/">How To Create Your Own Color Separations in Adobe Illustrator</a></li><li><a href="http://www.flickr.com/photos/squeegeescott/sets/72157624970749194/with/5037381306/">Gig Posters Process (t-shirt printing process photos)</a></li><li><a href="http://www.youtube.com/watch?v=H2t0lF_5oeo">Screen Printing Overview</a> (YouTube video)</li><li><a href="http://www.trapping.org/tips.html">Trapping Tips For Improving the Quality of Print Jobs</a></li></ul><p><em>(ik) (rs) </em></p><hr /><p><small>© John Rainsford for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2010. | <a href="http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/">Permalink</a> | <a href="http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/#comments">Post a comment</a> | <a title="Bookmark in del.icio.us" href="http://del.icio.us/post?url=http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/&title=Preparing Artwork for Screen Printing in Adobe Illustrator">Add to del.icio.us</a> | <a title="Bookmark in Digg" href="http://digg.com/submit?phase=2&url=http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/">Digg this</a> | <a title="Stumble on StumbleUpon" href="http://www.stumbleupon.com/submit?url=http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/">Stumble on StumbleUpon!</a> | <a title="Tweet us!" href="http://twitter.com/home?status=@tweetmeme%20@smashingmag%20Reading%20'Preparing Artwork for Screen Printing in Adobe Illustrator' http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/">Tweet it!</a> | <a title="Bookmark in Reddit" href="http://reddit.com/submit?url=http://www.smashingmagazine.com/2010/12/07/preparing-artwork-for-screen-printing-in-adobe-illustrator/">Submit to Reddit</a> | <a href="http://forum.smashingmagazine.com/">Forum Smashing Magazine</a><br/> Post tags: <a href="http://www.smashingmagazine.com/tag/illustrator/" rel="tag">illustrator</a>, <a href="http://www.smashingmagazine.com/tag/screen-printing/" rel="tag">screen printing</a><br/> </small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/preparing-artwork-for-screen-printing-in-adobe-illustrator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the LESS CSS Preprocessor for Smarter Style Sheets</title>
		<link>http://www.creativemanstudio.com/blog/using-the-less-css-preprocessor-for-smarter-style-sheets/</link>
		<comments>http://www.creativemanstudio.com/blog/using-the-less-css-preprocessor-for-smarter-style-sheets/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 12:37:25 +0000</pubDate>
		<dc:creator>pcontreras</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=66502</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt="" /></a>&#160;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" target="_blank"><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt="" /></a></div></td></tr></table><p>As a Web designer you're undoubtedly familiar with CSS, the style sheet language used to format markup on Web pages. CSS itself is extremely simple, consisting of rule sets and declaration blocks—what to style, how to style it—and it does pretty much everything you want, right? Well, not quite.</p><p><a href="http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/12/less-main.jpg" width="500" height="318" /></a></p> <p>You see, while the simple design of CSS makes it very accessible to beginners, it also poses limitations on what you can do with it. These limitations, like the inability to set variables or to perform operations, mean that we inevitably end up repeating the same pieces of styling in different places. Not good for following best practices—in this case, sticking to DRY (don't repeat yourself) for less code and easier maintenance.</p>]]></description>
			<content:encoded><![CDATA[<table width="650"><tr><td width="650"><div style="width:650px;"> <img src="http://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif" alt="Advertisement in Using the LESS CSS Preprocessor for Smarter Style Sheets" border="0" /><br /> <a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=34" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=34" border="0" alt=" in Using the LESS CSS Preprocessor for Smarter Style Sheets"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=35" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=35" border="0" alt=" in Using the LESS CSS Preprocessor for Smarter Style Sheets"  /></a>&nbsp;<a href="http://auslieferung.commindo-media-ressourcen.de/www/delivery/ck.php?zoneid=36" ><img src="http://auslieferung.commindo-media-ressourcen.de/www/delivery/avw.php?zoneid=36" border="0" alt=" in Using the LESS CSS Preprocessor for Smarter Style Sheets"  /></a></div></td></tr></table><p>As a Web designer you&#8217;re undoubtedly familiar with CSS, the style sheet language used to format markup on Web pages. CSS itself is extremely simple, consisting of rule sets and declaration blocks—what to style, how to style it—and it does pretty much everything you want, right? Well, not quite.</p><p>You see, while the simple design of CSS makes it very accessible to beginners, it also poses limitations on what you can do with it. These limitations, like the inability to set variables or to perform operations, mean that we inevitably end up repeating the same pieces of styling in different places. Not good for following best practices—in this case, sticking to DRY (don&#8217;t repeat yourself) for less code and easier maintenance.</p><p>Enter the CSS preprocessor. In simple terms, CSS preprocessing is a method of extending the feature set of CSS by first writing the style sheets in a new extended language, then compiling the code to vanilla CSS so that it can be read by Web browsers. Several CSS preprocessors are available today, most notably <a href="http://sass-lang.com/">Sass</a> and <a href="http://lesscss.org/">LESS</a>.</p><p><a href="http://lesscss.org/index.html"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/12/less-css.jpg" width="550" height="415" alt="Less-css in Using the LESS CSS Preprocessor for Smarter Style Sheets" /></a></p><p>What&#8217;s the difference? Sass was designed to both simplify and extend CSS, so things like curly braces were removed from the syntax. LESS was designed to be as close to CSS as possible, so the syntax is identical to your current CSS code. This means you can use it right away with your existing code. Recently, Sass also introduced a CSS-like syntax called SCSS (Sassy CSS) to make migrating easier.</p><h4>If It Ain&#8217;t Broke…?</h4><p>By now you might be thinking, “So what? Why should I care about these things, and how exactly will they make my life as a Web designer easier?” I&#8217;ll get to that in a moment, and I promise it will be worth your time. First, let me clarify the focus of this article.</p><p>In this tutorial, I&#8217;ll be using LESS to demonstrate how CSS preprocessing can help you code CSS faster. But that doesn&#8217;t mean you <em>must</em> use LESS. It&#8217;s my tool of choice, but you may find that Sass fits your workflow better, so I suggest giving them both a shot. I&#8217;ll talk a bit more about their differences at the end of the article.</p><p>I&#8217;ll start off by explaining how LESS works and how to install it. After, I&#8217;ll list a set of problems that large CSS files pose, one by one, and exactly how you can use LESS to solve them.</p><p>Let&#8217;s go!</p><h3>Installing It</h3><p>There are two parts to any CSS preprocessor: the language and the compiler. The language itself is what you&#8217;ll be writing. LESS looks just like CSS, except for a bunch of extra features. The compiler is what turns that LESS code into standard CSS that a Web browser can read and process.</p><p>Many different compilers are actually available for LESS, each programmed in a different language. There&#8217;s a <a href="http://lesscss.org/">Ruby Gem</a>, a <a href="http://leafo.net/lessphp/">PHP version</a>, a <a href="http://www.dotlesscss.org/">.NET version</a>, an <a href="http://incident57.com/less/">OS X app</a> and one written in <a href="http://github.com/cloudhead/less.js">JavaScript</a>. Some of these are platform-specific, like the OS X app. For this tutorial, I recommend the JavaScript version (less.js) because it&#8217;s the easiest to get started with.</p><p>Using the JavaScript compiler is extremely easy. Simply include the script in your HTML code, and then it will process LESS live as the page loads. We can then include our LESS file just as we would a standard style sheet. Here&#8217;s the code to put between the <code>&#60;head&#62;</code> tags of your mark-up:</p><pre class="brush: xml">&#60;link rel="stylesheet/less" href="/stylesheets/main.less" type="text/css" /&#62;
&#60;script src="http://lesscss.googlecode.com/files/less-1.0.30.min.js"&#62;&#60;/script&#62;</pre><p>Note that I&#8217;m referencing the less.js script directly from the Google Code server. With this method, you don&#8217;t even have to download the script to use it. The style sheet link goes above the script to ensure it gets loaded and is ready for the preprocessor. Also, make sure that the <code>href</code> value points to the location of your <code>.less</code> file.</p><p>That&#8217;s it. We can now begin writing LESS code in our <code>.less</code> file. Let&#8217;s go ahead and see how LESS makes working with CSS easier.</p><h3>1. Cleaner Structure With Nesting</h3><p>In CSS, we write out every rule set separately, which often leads to long selectors that repeat the same stuff over and over. Here&#8217;s a typical example:</p><pre class="brush: css">#header {}
#header #nav {}
#header #nav ul {}
#header #nav ul li {}
#header #nav ul li a {}</pre><p>LESS allows us to nest rule sets inside other rule sets, as a way to show hierarchy. Let&#8217;s rewrite the above example with nesting:</p><pre class="brush: css"># header {
  #nav {
    ul {
      li {
        a {}
      }
    }
  }
}</pre><p>I&#8217;ve omitted the content from the selectors for simplicity, but you can see how the structure of the code quickly changes. Now you don&#8217;t have to repeat selectors over and over again; simply nest the relevant rule set inside another to indicate the hierarchy. It&#8217;s also a great way to keep code organized because it groups related items together visually.</p><p>Also, if you want to give pseudo-classes this nesting structure, you can do so with the <code>&#38;</code> symbol. Pseudo-classes are things such as <code>:hover</code>, <code>:active</code> and <code>:visited</code>. Your code would look as follows:</p><pre class="brush: css">a {
  &#38;:hover {}
  &#38;:active {}
  &#38;:visited {}
}</pre><h3>2. Variables For Faster Maintenance</h3><p>We usually apply a palette of colors across an entire website. Any given color could be used for multiple items and so would be repeated throughout the CSS code. To change the color, you&#8217;d have to do a &#8220;Find and replace.&#8221;</p><p>But that&#8217;s not quite it. You could also isolate those values into separate rule sets; but with this method, the rule sets would keep growing as you add more colors across the website, leading to bloated selectors. Here&#8217;s what I&#8217;m talking about:</p><pre class="brush: css">#header, #sidebar .heading, #sidebar h2, #footer h3, .aside h3 { color: red; }</pre><p>To make a simple color change, we&#8217;re faced with long selectors, all dedicated to that one color. It&#8217;s not pretty. LESS allows us to specify variables in one place—such as for brand colors, border lengths, side margins and so on—and then reuse the variables elsewhere in the style sheet. The value of the variable remains stored in one place, though, so making a change is as simple as changing that one line. Variables start with an <code>@</code> and are written like this:</p><pre class="brush: css">@brand-color: #4455EE;

#header { background-color: @brand-color; }
#footer { color: @brand-color; }
h3 { color: @brand-color; }</pre><p>In LESS, variables also have scope, so you could use variables with the same name in various places; when they&#8217;re called, the compiler would check for the variable locally first (i.e. is there anything with that name where the declaration is currently nested?), and then move up the hierarchy until it finds it. For example, the following code:</p><pre class="brush: css">@great-color: #4455EE;

#header {
  @great-color: #EE3322;
  color: @great-color;
}</pre><p>…compiles to:</p><pre class="brush: css">#header { color: #EE3322; }</pre><h3>3. Reusing Whole Classes</h3><p>Variables are great, but we often reuse more than single values. A good example is code that&#8217;s different for every browser, like the CSS3 property <code>border-radius</code>. We have to write at least three declarations just to specify it:</p><pre class="brush: css">-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;</pre><p>If you use a lot of CSS3, then this sort of repeating code adds up quickly. LESS solves this by allowing us to reuse whole classes simply by referencing them in our rule sets. For example, let&#8217;s create a new class for the above <code>border-radius</code> and reuse it in another rule set:</p><pre class="brush: css">.rounded-corners {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
#login-box {
  .rounded-corners;
}</pre><p>Now <code>#login-box</code> will inherit the properties of the <code>rounded-corners</code> class. But what if we want more control over the size of the corners? No problem. We can pass along variables to the &#8220;mixin&#8221; (these reusable classes are called mixins) to get a more specific outcome. First, we rewrite the original mixin to add the variable we want to manipulate:</p><pre class="brush: css">.rounded-corners(@radius: 5px) {
  -webkit-border-radius: @radius;
  -moz-border-radius: @radius;
  border-radius: @radius;
}</pre><p>Now we&#8217;ve replaced the values for a variable, and we&#8217;ve specified the default value inside the parentheses. To give mixins multiple values, you&#8217;ll just need to separate them with a comma. Now, if we want our <code>#login-box</code> to have a border radius of three pixels instead of five, we do this:</p><pre class="brush: css">#login-box {
  .rounded-corners(3px);
}</pre><h3>4. Operations</h3><p>Variables let us specify things such as common palettes of colors, but what about relative design elements, like text that&#8217;s just a bit lighter than the background, or an inner border that&#8217;s one pixel thicker than the outer border?</p><p>Rather than add more variables, we can perform operations on existing values with LESS. For example, we can make colors lighter or darker or add values to borders and margins. And when we change the value that these operations depend on, they update accordingly. Take the following:</p><pre class="brush: css">@base-margin: 25px;
#header { margin-top: @base-margin + 10px; }</pre><p>This gives the <code>#header</code> element a top margin of 35 pixels. You can, of course, also multiply, divide and subtract, and perform operations on colors like <code>#888 / 4</code> and <code>#EEE + #111</code>.</p><h3>5. Namespaces and Accessors</h3><p>What if you want to group variables or mixins into separate bundles? You can do this by nesting them inside a rule set with an <code>id</code>, like <code>#defaults</code>. Mixins can also be grouped in this way:</p><pre class="brush: css">#defaults {
  @heading-color: #EE3322;
  .bordered { border: solid 1px #EEE; }
}</pre><p>Then, to call a variable and a mixin from that particular group, we do this:</p><pre class="brush: css">h1 {
  color: #defaults[@heading-color];
  #defaults &#62; .bordered;
}</pre><p>We can even access values of other properties in a given rule set directly, even if they&#8217;re not variables. So, to give the sidebar heading the same color as your main <code>h1</code> heading, you&#8217;d write:</p><pre class="brush: css">h1 { color: red; }

.sidebar_heading { color: h1['color']; }</pre><p>There&#8217;s not much difference between variables and accessors, so use whichever you prefer. Accessors probably make more sense if you will be using the value only once. Variable names can add semantic meaning to the style sheet, so they make more sense when you look at them at a later date.<br /> A couple more things to mention: You can use two slashes, <code>//</code>, for single-line comments. And you can import other LESS files, just as in CSS, with <code>@import</code>:</p><pre class="brush: css">@import 'typography';
@import 'layout';</pre><h3>To Conclude</h3><p>I hope by now you&#8217;ve got a pretty good idea why CSS preprocessors exist, and how they can make your work easier. The JavaScript version of the LESS compiler, less.js, is of course just one way to use LESS. It&#8217;s probably the easiest to get started with, but it also has some downsides, the biggest one being that the compiling takes place live. This isn&#8217;t a problem on modern browsers with fast JavaScript engines, but it might work slower on older browsers. Note that less.js actually caches the CSS once it&#8217;s processed, so the CSS isn&#8217;t regenerated for each user.</p><p>To use the generated CSS instead of LESS in your markup, you can compile your files using the various other compilers. If you&#8217;re on OS X, I suggest trying out the <a href="http://incident57.com/less/">LESS App</a>, a desktop app that watches your LESS files for changes as you work and automatically compiles them into CSS files when you update them. The Ruby Gem has the same watcher functionality but is trickier to install if you&#8217;re not familiar with Ruby (see the <a href="http://lesscss.org/">official website</a> for details on that). There are also <a href="http://leafo.net/lessphp/">PHP</a> and <a href="http://www.dotlesscss.org/">.NET</a> versions.</p><p>Finally, LESS isn&#8217;t your only option for a CSS preprocessor. The other popular choice is <a href="http://sass-lang.com/">Sass</a>, but there are still more options to check out, such as <a href="http://xcss.antpaw.org/">xCSS</a>. The advantage of LESS is that it uses existing CSS syntax, so getting started is just a matter of renaming your <em>.css</em> file to <em>.less</em>. This might be a disadvantage if you dislike the CSS syntax and curly braces, in which case Sass would probably be a better choice. There is also the <a href="http://compass-style.org/ ">Compass</a> framework available for Sass, which is worth checking out if you go with Sass.</p><p><em>(al) (sp)</em></p><hr /><p><small>© Dmitry Fadeyev for <a href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2010. | <a href="http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/">Permalink</a> | <a href="http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/#comments">Post a comment</a> | <a title="Bookmark in del.icio.us" href="http://del.icio.us/post?url=http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/&title=Using the LESS CSS Preprocessor for Smarter Style Sheets">Add to del.icio.us</a> | <a title="Bookmark in Digg" href="http://digg.com/submit?phase=2&url=http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/">Digg this</a> | <a title="Stumble on StumbleUpon" href="http://www.stumbleupon.com/submit?url=http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/">Stumble on StumbleUpon!</a> | <a title="Tweet us!" href="http://twitter.com/home?status=@tweetmeme%20@smashingmag%20Reading%20'Using the LESS CSS Preprocessor for Smarter Style Sheets' http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/">Tweet it!</a> | <a title="Bookmark in Reddit" href="http://reddit.com/submit?url=http://www.smashingmagazine.com/2010/12/06/using-the-less-css-preprocessor-for-smarter-style-sheets/">Submit to Reddit</a> | <a href="http://forum.smashingmagazine.com/">Forum Smashing Magazine</a><br/> Post tags: <a href="http://www.smashingmagazine.com/tag/css/" rel="tag">CSS</a>, <a href="http://www.smashingmagazine.com/tag/less/" rel="tag">less</a><br/> </small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/using-the-less-css-preprocessor-for-smarter-style-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Development For The iPhone And iPad: Getting Started</title>
		<link>http://www.creativemanstudio.com/blog/web-development-for-the-iphone-and-ipad-getting-started/</link>
		<comments>http://www.creativemanstudio.com/blog/web-development-for-the-iphone-and-ipad-getting-started/#comments</comments>
		<pubDate>Fri, 28 May 2010 11:29:29 +0000</pubDate>
		<dc:creator>Nick Francis</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=41296</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div style="width:650px"> <img src="http://creatives.commindo-media.de/static/smashing-magazine-advertisement.gif" alt="" border="0" /><br /> <a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=56" target="_blank"><img src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=56" border="0" alt="" /></a>&#160;<a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=63" target="_blank"><img src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=63" border="0" alt="" /></a>&#160;<a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=64" target="_blank"><img src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=64" border="0" alt="" /></a></div></td></tr></table><p>According to AdMob, the <strong>iPhone operating system makes up 50% of the worldwide smartphone market</strong>, with the next-highest OS being Android at 24%. Sales projections for the Apple iPad run anywhere from one to four million units in the first year. Like it or not, the iPhone OS, and Safari in particular, have become a force to be reckoned with for Web developers. If you haven't already, it's time to dive in and familiarize yourself with the tools required to optimize websites and Web applications for this OS.</p><p><a href="http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/04/ipad-gui.jpg" alt="iPad GUI" /></a></p><p>Thankfully, Safari on iPhone OS is a really great browser. Just like Safari 4 for the desktop, it has great CSS3 and HTML5 support. It also has some slick interface elements right out of the box, which sometimes vary between the iPhone and iPad. Lastly, because the iPhone OS has been around for quite some time now, a lot of resources are available.</p> ]]></description>
			<content:encoded><![CDATA[<table
width="650"><tr><td
width="650"><div
style="width:650px;"> <img
src="http://creatives.commindo-media.de/static/smashing-magazine-advertisement.gif" alt="Smashing-magazine-advertisement in Web Development For The iPhone And iPad: Getting Started" border="0" /><br
/> <a
href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=56" ><img
src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=56" border="0" alt=" in Web Development For The iPhone And iPad: Getting Started"  /></a>&nbsp;<a
href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=63" ><img
src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=63" border="0" alt=" in Web Development For The iPhone And iPad: Getting Started"  /></a>&nbsp;<a
href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=64" ><img
src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=64" border="0" alt=" in Web Development For The iPhone And iPad: Getting Started"  /></a></div></td></tr></table><p>According to AdMob, the <strong>iPhone operating system makes up 50% of the worldwide smartphone market</strong>, with the next-highest OS being Android at 24%. Sales projections for the Apple iPad run anywhere from one to four million units in the first year. Like it or not, the iPhone OS, and Safari in particular, have become a force to be reckoned with for Web developers. If you haven&#8217;t already, it&#8217;s time to dive in and familiarize yourself with the tools required to optimize websites and Web applications for this OS.</p><p>Thankfully, Safari on iPhone OS is a really great browser. Just like Safari 4 for the desktop, it has great CSS3 and HTML5 support. It also has some slick interface elements right out of the box, which sometimes vary between the iPhone and iPad. Lastly, because the iPhone OS has been around for quite some time now, a lot of resources are available.</p><p>I know that most discussion about the iPhone OS platform centers on native applications. But you can still create powerful, native-looking applications using HTML, JavaScript and CSS. This article focuses on <strong>three phases of building and optimizing your website: design, coding and testing.</strong></p><p>Before we get into the three phases, let&#8217;s look at some of the advantages and disadvantages of building a Web app rather than a native app.</p><p>Advantages of building a Web app instead of a native app:</p><ol><li>No Apple approval process or red tape, which is especially important given the <a
href="http://www.develop-online.net/news/34473/Apple-Control-freak-or-quality-catalyst">terms of service dispute</a> going on right now.</li><li>Optimizing your Web app for other popular platforms like Android and Blackberry with the same code is much easier.</li><li>You don&#8217;t have to learn Objective-C.</li><li>If you&#8217;re charging users, you don&#8217;t have to share revenue with Apple.</li><li>You get 100% control over the means of payment, promotion and distribution to users… which could also be a negative, depending on how you look at it.</li></ol><p>Disadvantages of building a Web app instead of a native app:</p><ol><li>No presence in the App Store.</li><li>Installing the app on a device is a little trickier.</li><li>No access to some of the features that are native to the iPhone OS, such as push notification and GUI controls.</li></ol><p>[Offtopic: By the way, did you know that Smashing Magazine has a <a
href="http://creatives.commindo-media.de/www/delivery/ck.php?oaparams=2__bannerid=1249__zoneid=0__cb=be1da96c6d__oadest=http%3A%2F%2Fm.smashingmagazine.com">mobile version</a>? Try it out if you have an iPhone, Blackberry or another capable device.]</p><h3>Design</h3><p>Designing a Web app for this platform is much like designing a native app, so you&#8217;ll have access to some really great tools. Whether your wireframing tool of choice is pencil and paper or desktop software, you&#8217;re covered.</p><h4>Inspiration</h4><p>Not many people know that Apple has a &#8220;<a
href="http://www.apple.com/webapps/" title="Apple Web apps">Web apps</a>&#8221; section on its website, which is dedicated to showcasing optimized websites.</p><p><img
src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/04/apple-webapps.png" alt="Apple-webapps in Web Development For The iPhone And iPad: Getting Started"  /><br
/> <em>Featured Web app on the Apple website</em></p><p>There are also some galleries elsewhere that showcase the finest in mobile Web design:</p><ul><li><a
href="http://www.apple.com/webapps/" title="Apple Web apps">Apple Web Apps Listing</a></li><li><a
href="http://www.mobileawesomeness.com" title="Mobile Awesomeness">Mobile Awesomeness Design Gallery</a></li><li><a
href="http://www.cssiphone.com" title="CSS iPhone">CSS iPhone Design Gallery</a></li><li><a
href="http://wellplacedpixels.com/">Well Placed Pixels</a></li><li><a
href="http://www.apple.com/iphone/apps-for-iphone/">Apple App Store</a> (Even though these are native apps, you can find great visual inspiration here.)</li></ul><h4>Paper</h4><p>Paper prototyping has long been my tool of choice for wireframing new ideas or websites. What I really like about the tools below is that they provide perspective on the size and dimensional constraints that you&#8217;re dealing with. To successfully optimize a Web app for the iPhone OS, you have to cut things out. I suggest keeping the design minimal by wireframing with a sharpie and one of the tools listed below.</p><p><img
src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/04/notepod.jpg" alt="Notepod in Web Development For The iPhone And iPad: Getting Started"  /><br
/> <em><a
href="http://notepod.net/" title="Notepod">Notepod</a> is great for sketching out rough ideas for the iPhone and iPad.</em></p><ul><li><a
href="http://notepod.net/" title="Notepod">Notepod: iPad and iPhone sketchbooks</a></li><li><a
href="http://appsketchbook.com/" title="App Sketchbook">App Sketchbook</a></li><li><a
href="http://www.pixelpads.com/PixelPads_I_Features.html" title="PixelPads">PixelPads</a></li><li><a
href="http://www.uistencils.com/products/iphone-sticky-pad">UI Stencils sticky pads</a></li><li><a
href="http://apress.com/book/view/9781430228233">Apress iPhone Application Sketch Book</a></li><li><a
href="http://fullofdesign.com/posts/iphone-app-wireframe-template/">Printable iPhone Wireframe Template</a> (free)</li></ul><h4>Digital</h4><p>Once you know exactly how things will lay out in your design, we can move to the desktop and get specific. I really like wireframing with <a
href="http://www.omnigroup.com/products/omnigraffle/" title="OmniGraffle for Mac">OmniGraffle</a>, but sometimes diving straight into Photoshop makes sense. Either way, these tools are a <em>huge</em> help in making it happen.</p><p><img
src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/04/ipad-gui.jpg" alt="Ipad-gui in Web Development For The iPhone And iPad: Getting Started"  /><br
/> <em><a
href="http://www.teehanlax.com/blog/2010/02/01/ipad-gui-psd/" title="iPad">iPad GUI</a> preview from Teehan + Lax.</em></p><ul><li><a
href="http://www.teehanlax.com/blog/2009/06/18/iphone-gui-psd-30/" title="iPhone">iPhone GUI PSD 3.0</a> and <a
href="http://www.teehanlax.com/blog/2010/02/01/ipad-gui-psd/" title="iPad">iPad GUI PSD</a> (Photoshop)</li><li><a
href="http://www.designerstoolbox.com/designresources/iphone/">Layered iPhone GUI elements</a> (Photoshop), from Designer&#8217;s Toolbox</li><li><a
href="http://www.smashingmagazine.com/2008/11/26/iphone-psd-vector-kit/">PSD Vector Kit</a> (Photoshop), from Smashing Magazine</li><li><a
href="http://www.morford.org/iphoneosdesignstencil/">iPad and iPhone stencils</a>; see more at <a
href="http://graffletopia.com/categories/iphone" title="Graffletopia">Graffletopia</a> (OmniGraffle)</li><li><a
href="http://speckyboy.com/2010/04/30/iphone-and-ipad-development-gui-kits-stencils-and-icons/">iPhone and iPad Development GUI Kits, Stencils and Icons</a></li></ul><p><strong>Hungry for more?</strong> <a
href="http://iphoneized.com/2009/11/21-prototyping-mockup-wireframing-tools-iphone-app-development/" title="21 Prototyping, Mockup, and Wireframing Tools for iPhone App Development">This article</a> has a good rundown of additional design tools.</p><h3>Coding</h3><p>When you start coding for Safari on the iPhone OS, understanding how the browser works is important. Also, there are subtle differences in the iPhone and iPad&#8217;s browsers, such as how form-select boxes work. Most importantly, Safari has great CSS3 and HTML5 support, so you can use modern code without having to worry about cross-browser compatibility.</p><h4>Education</h4><p>Apple actually does a really good job of documenting Safari for the iPhone OS. The only shortcomings in my opinion are a lack of help with browser detection and window orientation. Read each of the articles below for everything you need to know about coding for this browser.</p><p><a
href="http://developer.apple.com/safari/library/documentation/InternetWeb/Conceptual/iPhoneWebAppHIG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007900">iPhone Human Interface Guidelines for Web Applications</a><br
/> This is a good overall summary of how Safari for the iPhone OS works. It&#8217;s certainly worth scanning through, because it has some good advice, although no specific coding examples.</p><p><a
href="http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadHIG/Introduction/Introduction.html" title="iPad Human Interface Guidelines">iPad Human Interface Guidelines</a><br
/> This document does a good job of distinguishing iPhone elements and iPad elements. This is also worth scanning through, because it has some great advice on designing for the iPad.</p><p><a
href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/Introduction/Introduction.html#//apple_ref/doc/uid/TP40002079-SW1">Safari Web Content Guide</a><br
/> This document gets specific about the viewport, webclip icons, unique meta tags and event handling, among many other topics. Code examples are provided. I recommend reading it cover to cover before getting started.</p><p><a
href="http://developer.apple.com/safari/library/technotes/tn2010/tn2262.html">Preparing Your Web Content for the iPad</a><br
/> This document provides tips on testing your website on the iPad, but its discussion on browser detection isn&#8217;t as detailed as I would like.</p><p>Browser Detection<br
/> David Walsh provides good examples of proper browser detection <a
href="http://davidwalsh.name/detect-ipad" title="iPad Detection Using JavaScript or PHP">for the iPad</a> and <a
href="http://davidwalsh.name/detect-iphone">for the iPhone</a> on his blog. Options for PHP and Javascript are included.</p><p><a
href="http://net.tutsplus.com/tutorials/tools-and-tips/learn-how-to-develop-for-the-iphone/" title="Nettuts">Detecting iPhone Window Orientation</a><br
/> This iPhone development tutorial from Nettuts provides a good example of how to vary style sheets according to the iPhone&#8217;s orientation.</p><p>Detecting iPad Window Orientation<br
/> Detecting iPad&#8217;s window orientation is <em>much</em> easier. Here&#8217;s what the code looks like (no JavaScript required):</p><pre class="brush: xml">
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:portrait)&quot; href=&quot;portrait.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:landscape)&quot; href=&quot;landscape.css&quot;&gt;
</pre><h4>jQTouch Mobile Framework</h4><p><img
src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/04/jqtouch.jpg" alt="Jqtouch in Web Development For The iPhone And iPad: Getting Started"  /></p><p>While the iPhone has a few mobile development frameworks, jQTouch is far and away the best. jQTouch gives you all of the tools to make your mobile Web app look and feel like a native one. <a
href="http://jqtouch.com/" title="jQTouch—jQuery plugin for mobile web development">Visit the website</a>, and go to the <a
href="http://jqtouch.com/preview/demos/main/" title="jQTouch &beta;">demo website</a> from your iPhone to get a feel for it.</p><p>My only complaint when building my first website with jQTouch was a lack of documentation and tutorials. I had to figure it out by playing with the demo website&#8217;s code. Here are some jQTouch articles that proved helpful in coding my first website:</p><ul><li><a
href="http://code.google.com/p/jqtouch/wiki/GettingStarted">jQTouch Wiki on Google Code</a></li><li><a
href="http://building-iphone-apps.labs.oreilly.com/ch04.html">Building iPhone Apps with HTML, CSS and JavaScript, Chapter 4: Animation</a></li><li><a
href="http://philippbosch.de/talks/jqtouch/" title="Philipp Bosch. Web Engineer. Talks">PDF slides about getting started with jQTouch</a>, by Philipp Bosch</li></ul><h3>Testing</h3><p>A crucial and somewhat tricky part of building a website or Web app for the iPhone OS is testing. It&#8217;s a little more complicated than testing in a web browser, but familiarizing yourself with a couple of tools should make the process simple.</p><h4>Liveview</h4><p><img
src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/04/liveview.jpg" alt="Liveview in Web Development For The iPhone And iPad: Getting Started"  /></p><p><a
href="http://www.zambetti.com/projects/liveview/" title="LiveView for iPhone">Liveview</a> is a really clever testing tool for when your app is in the design or initial coding phase. It allows you to broadcast an image from your desktop onto your phone so that you can see what it looks like. This is useful for getting text size and the visual specifics just right, because sometimes visualizing from Photoshop is hard.</p><h4>Using the iPhone Simulator</h4><p>In my opinion, no good iPhone or iPad emulators are available. The ones that are available are a waste of time. Much better is to download the <a
href="https://daw.apple.com/cgi-bin/WebObjects/DSAuthWeb.woa/wa/login?appIdKey=D635F5C417E087A3B9864DAC5D25920C4E9442C9339FA9277951628F0291F620&amp;path=%2F%2Fiphone%2Findex.action">latest version of the SDK</a> and use Apple&#8217;s official iPhone OS simulator, which of course supports the iPad as well.</p><p>Setting up the SDK and a local testing environment takes a few minutes but is well worth the effort, rather than depending on unofficial and often inaccurate emulators. I&#8217;ve written a step-by-step tutorial about <a
href="http://www.project83.com/blog/how-to-test-iphone-websites-locally-with-the-iphone-simulator/" title="Project83 Blog">setting up a local testing environment</a> that&#8217;s worth a read. One great thing about local testing is that it&#8217;s faster and does not require an Internet connection. I highly recommend going this route until you are ready to launch.</p><h3>PhoneGap: Best Of Both Worlds?</h3><p><strong>PhoneGap is a game-changer for Web developers.</strong> If you would rather create your app in HTML, CSS and JavaScript but want it to run natively and have it be available in the App Store, then <a
href="http://phonegap.com/" title="PhoneGap">PhoneGap is the solution</a>. It&#8217;s an open-source development tool that not only compiles your code for native use on the iPhone OS but also works for Android, Palm, Symbian, Windows Mobile and Blackberry devices.</p><p><a
href="http://www.phonegap.com/2010/04/14/phonegap-and-the-apple-developer-license-agreement/" title="PhoneGap and the Apple developer license agreement">PhoneGap also steers clear</a> of the recently controversial 3.3.1 clause of Apple&#8217;s terms of service. In other words, apps compiled with PhoneGap will still be approved. <a
href="http://phonegap.com/projects" title="PhoneGap Projects">Check out the list of apps</a> that are built with PhoneGap to learn more.</p><h3>Feeling Overwhelmed?</h3><p>If you are, then some good hosted services will make it easier to optimize your website for multiple platforms without having to start from scratch. There are various levels of flexibility available, but all the services use a WYSIWYG-like editor to help you create mobile websites on the fly. Depending on your Web app and client, one of the following may be a good fit:</p><p><img
src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/04/mobify.png" alt="Mobify in Web Development For The iPhone And iPad: Getting Started"  /><br
/> <em><a
href="http://www.mobify.me/">Mobify</a> is a great alternative if you don&#8217;t care to build from scratch.</em></p><ul><li><a
href="http://www.mobify.me/">Mobify</a> (which powers <a
href="http://m.smashingmagazine.com" title="Smashing Magazine Mobile">Smashing Magazine&#8217;s mobile website</a>)</li><li><a
href="http://wapple.net/">Wapple</a></li><li><a
href="http://www.mofusepremium.com/">Mofuse</a></li><li><a
href="http://gomobiten.com/">Mobi10</a></li></ul><h3>Conclusion</h3><p>It&#8217;s a great day to be a Web developer, because non-desktop platforms like the iPhone OS open up greater possibilities for us to express our creativity and entrepreneurial savvy, while allowing us to adhere to modern Web standards. All of the tools you need to create great a Web experience on the platform that&#8217;s currently dominating the mobile space are out there. It&#8217;s up to you to make the most of them!</p><p><em>(al)</em></p><hr
/><p><small>© Nick Francis for <a
href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2010. | <a
href="http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/">Permalink</a> | <a
href="http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/#comments">70 comments</a> | <a
title="Bookmark in del.icio.us" href="http://del.icio.us/post?url=http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/&title=Web%20Development%20For%20The%20iPhone%20And%20iPad:%20Getting%20Started">Add to del.icio.us</a> | <a
title="Bookmark in Digg" href="http://digg.com/submit?phase=2&url=http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/">Digg this</a> | <a
title="Stumble on StumbleUpon" href="http://www.stumbleupon.com/submit?url=http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/">Stumble on StumbleUpon!</a> | <a
title="Tweet us!" href="http://twitter.com/home?status=@tweetmeme%20@smashingmag%20Reading%20'Web%20Development%20For%20The%20iPhone%20And%20iPad:%20Getting%20Started'%20http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/">Tweet it!</a> | <a
title="Bookmark in Reddit" href="http://reddit.com/submit?url=http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/">Submit to Reddit</a> | <a
href="http://forum.smashingmagazine.com/">Forum Smashing Magazine</a><br/> Post tags: <a
href="http://www.smashingmagazine.com/tag/ipad/" rel="tag">ipad</a>, <a
href="http://www.smashingmagazine.com/tag/iphone/" rel="tag">iphone</a>, <a
href="http://www.smashingmagazine.com/tag/mobile/" rel="tag">mobile</a><br/> </small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/web-development-for-the-iphone-and-ipad-getting-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Three — Connecting The Dots</title>
		<link>http://www.creativemanstudio.com/blog/css-three-%e2%80%94-connecting-the-dots/</link>
		<comments>http://www.creativemanstudio.com/blog/css-three-%e2%80%94-connecting-the-dots/#comments</comments>
		<pubDate>Thu, 27 May 2010 10:18:21 +0000</pubDate>
		<dc:creator>Trent Walton</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.smashingmagazine.com/?p=45723</guid>
		<description><![CDATA[<table width="650"><tr><td width="650"><div style="width:650px"> <img src="http://creatives.commindo-media.de/static/smashing-magazine-advertisement.gif" alt="" border="0" /><br /> <a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=56" target="_blank"><img src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=56" border="0" alt="" /></a>&#160;<a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=63" target="_blank"><img src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=63" border="0" alt="" /></a>&#160;<a href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=64" target="_blank"><img src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=64" border="0" alt="" /></a></div></td></tr></table><p>As a web community, we’ve made a lot of exciting progress in regards to CSS3.  We’ve put properties like <code>text-shadow</code> &#38; <code>border-radius</code> to good use while stepping into <code>background-clip</code> and visual effects like transitions and animations. We’ve also spent a great deal of time debating how and when to implement these properties.  Just because a property isn’t widely supported by browsers or fully documented at the moment, it doesn’t mean that we shouldn’t be working with it.  In fact, I’d argue the opposite.</p><p><a href="http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/"><img src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/connectingthedots1.png" width="500" height="300" alt="CSS Three: Connecting The Dots" /></a></p><p>Best practices for CSS3 usage need to be hashed out in blog posts, during spare time, and outside of client projects.  Coming up with creative and sensible ways to get the most out of CSS3 will require the kind of experimentation wherein developers gladly trade ten failures for a single success. Right now, there are tons of property combinations and uses out there waiting to be discovered. All we have to do is connect the dots. It’s time to get your hands dirty and innovate!</p>]]></description>
			<content:encoded><![CDATA[<table
width="650"><tr><td
width="650"><div
style="width:650px;"> <img
src="http://creatives.commindo-media.de/static/smashing-magazine-advertisement.gif" alt="Smashing-magazine-advertisement in CSS Three — Connecting The Dots" border="0" /><br
/> <a
href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=56" ><img
src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=56" border="0" alt=" in CSS Three — Connecting The Dots"  /></a>&nbsp;<a
href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=63" ><img
src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=63" border="0" alt=" in CSS Three — Connecting The Dots"  /></a>&nbsp;<a
href="http://creatives.commindo-media.de/www/delivery/ck.php?zoneid=64" ><img
src="http://creatives.commindo-media.de/www/delivery/avw.php?zoneid=64" border="0" alt=" in CSS Three — Connecting The Dots"  /></a></div></td></tr></table><p>As a web community, we’ve made a lot of exciting progress in regards to CSS3.  We’ve put properties like <code>text-shadow</code> &amp; <code>border-radius</code> to good use while stepping into <code>background-clip</code> and visual effects like transitions and animations. We’ve also spent a great deal of time debating how and when to implement these properties.  Just because a property isn’t widely supported by browsers or fully documented at the moment, it doesn’t mean that we shouldn’t be working with it.  In fact, I’d argue the opposite.</p><p>Best practices for CSS3 usage need to be hashed out in blog posts, during spare time, and outside of client projects.  Coming up with creative and sensible ways to get the most out of CSS3 will require the kind of experimentation wherein developers gladly trade ten failures for a single success. Right now, there are tons of property combinations and uses out there waiting to be discovered. All we have to do is connect the dots. It’s time to get your hands dirty and innovate!</p><p><img
src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/connectingthedots1.png" alt="Connectingthedots1 in CSS Three — Connecting The Dots" width="500" height="300" /></p><p>[Offtopic: by the way, did you know that there is a Smashing eBook Series? Book #1 is <a
href="http://shop.smashingmagazine.com/smashing-ebook-series-1-professional-web-design-intl.html">Professional Web Design</a>, 242 pages for just $9,90.]</p><h3>Where do I start?</h3><p>One of my favorite things to do is to scan a list of CSS properties and consider which ones might work well together.  What would be possible if I was to connect @font-face to <code>text-shadow</code> and the <code>bg-clip:text</code> property?  How could I string a <code>webkit-transition</code> and <code>opacity</code> together in a creative way?  Here are a few results from experiments I’ve done recently. While some may be more practical than others, the goal here is to spark creativity and encourage you to connect a few dots of your own.</p><p><em>Note: While Opera and Firefox may soon implement specs for many of the CSS3 properties found here, some of these experiments will currently only work in Webkit-browsers like Google Chrome or Safari.</em></p><h3>Example #1: CSS3 Transitions</h3><p>A safe place to start with CSS3 visual effects is transitioning a basic CSS property like <code>color</code>, <code>background-color</code>, or <code>border</code> on hover.  To kick things off, let’s take a link color CSS property and connect it to a .4 second transition.</p><p><a
href="http://trentwalton.com/css3/connecting_the_dots"><img
class="alignnone size-full wp-image-45952" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/example_1a.jpg" alt="Example 1a in CSS Three — Connecting The Dots" width="500" height="100" /></a></p><p>Start with your link CSS, including the hover state:</p><pre class="brush: css">a { color: #e83119; }
a:hover { color:#0a99ae; }</pre><p>Now, bring in the CSS3 to set and define which property you’re transitioning, duration of transition and how that transition will proceed over time.  In this case we’re setting the color property to fade over .4 seconds with an <code>ease-out</code> timing effect, where the pace of the transition starts off quickly and slows as time runs out. To learn more about timing, check out the <a
href="http://webkit.org/blog/138/css-animation/">Surfin’ Safari Blog post on CSS animations</a>.  I prefer <code>ease-out</code> most of the time simply because it yields a more immediate transition, giving users a more immediate cue that something is changing.</p><pre class="brush: css">a {
-webkit-transition-property: color;
-webkit-transition-duration:.4s;
-webkit-transition-timing:ease-out;
}</pre><p>You can also combine these into a single CSS property by declaring the property, duration, and timing function in that order:</p><pre class="brush: css">a { -webkit-transition: color .4s ease-out; }</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots">View the live example here</a></p><p>The final product should be a red text link that subtly transitions to blue when users hover with their mouse pointer.  This basic transitioning technique can be connected to an infinite amount of properties.  Next, let’s let’s create a menu bar hover effect where border-thickness  is combined with a .3 second transition.</p><p><a
href="http://trentwalton.com/css3/connecting_the_dots"><img
class="alignnone size-full wp-image-45953" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/example_1b.jpg" alt="Example 1b in CSS Three — Connecting The Dots" width="500" height="123" /></a></p><p>To start, we’ll set a series of navigation links with a 3 pixel bottom border, and a 50 pixel border on hover:</p><pre class="brush: css">border-nav a { border-bottom: 3px solid #e83119 }
border-nav a:hover { border-bottom: 50px solid #e83119 }</pre><p>To bring the transition into the mix, let’s set a transition to gradually extend the border thickness over .3 seconds in a single line of CSS:</p><pre class="brush: css">border-nav a { -webkit-transition: border .3s ease-out; }</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots">View the live example here</a></p><h4>Examples</h4><p>This is just one example of how to use these transitions to enhance links and navigation items.  Here are a few other sites with similar creative techniques:</p><p><a
href="http://teamexcellence.com">Team Excellence</a><br
/> The webkit transition on all navigation items, including the main navigation set at .2s provides a nice effect without making visitors wait too long for the hover state.</p><p><a
href="http://teamexcellence.com/"><img
class="alignnone size-full wp-image-45971" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/team_excellence_transition.jpg" alt="Team Excellence Transition in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://www.ackernaut.com">Ackernaut</a><br
/> Ackernaut has subtle transitions on all link hovers, and extends the property to fade the site header in/out.</p><p><a
href="http://www.ackernaut.com/"><img
class="alignnone size-full wp-image-45947" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/ackernaut_transitions.jpg" alt="Ackernaut Transitions in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://simplebits.com">SimpleBits</a><br
/> The SimpleBits main navigation transitions over .2 seconds with linear timing.</p><p><a
href="http://simplebits.com/"><img
class="alignnone size-full wp-image-45970" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/simplebits_transition.jpg" alt="Simplebits Transition in CSS Three — Connecting The Dots" width="500" height="169" /></a></p><p><a
href="http://design-swap.com">DesignSwap</a><br
/> On DesignSwap, all text links have a .2 second transitions on hover and the swapper profiles fade out to real details about the latest designs.</p><p><a
href="http://design-swap.com/"><img
class="alignnone size-full wp-image-45949" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/designswap_transitions.jpg" alt="Designswap Transitions in CSS Three — Connecting The Dots" width="500" height="284" /></a></p><p><a
href="http://jackosborne.co.uk">Jack Osborne</a><br
/> Jack Osborne transitions all of the blue links as well as the post title link on his home page.</p><p><a
href="http://jackosborne.co.uk/"><img
class="alignnone size-full wp-image-45963" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/jackosborne_transitions.jpg" alt="Jackosborne Transitions in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://esquareda.com">Eric E. Anderson</a><br
/> Eric E. Andersion has taken CSS3 implementation even further by implementing a transition on his main navigation for background color and color alongside <code>border-radius</code> and <code>box-shadow</code>.</p><p><a
href="http://esquareda.com/"><img
class="alignnone size-full wp-image-45950" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/ericeanderson.jpg" alt="Ericeanderson in CSS Three — Connecting The Dots" width="500" height="270" /></a></p><h3>Example #2: Background Clip</h3><p>When connected to properties like <code>text-shadow</code> and @font-face, the <code>background-clip</code> property makes all things possible with type. To keep things simple, we’ll start with taking a crosshatch image and masking it over some text.  The code here is pretty simple.  Start by wrapping some HTML in a div class called <em>bg-clip</em>:</p><pre class="brush: xml">&lt;div class="bg-clip"&gt;
&lt;h3&gt;kablamo!&lt;/h3&gt;
&lt;/div&gt;</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#2"><img
class="alignnone size-full wp-image-45954" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/example_2a.jpg" alt="Example 2a in CSS Three — Connecting The Dots" width="500" height="123" /></a></p><p>Now to the CSS.  First, set the image you will be masking the text with as the background-image.  Then, set the <code>-webkit-text-fill-color</code> to transparent and define the <code>-webkit-background-clip</code> property for the text.</p><pre class="brush: css">.bg-clip {
background: url(../img/clipped_image.png) repeat;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#2">View the live example here</a></p><p>This opens the door for you to start adding texture or other graphic touches to your type without resorting to using actual image files.  For even more CSS3 text experimentation, we can add the transform property to rotate the text (or any element for that matter) to any number of degrees.  All it takes is a single line of CSS code:</p><pre class="brush: css">-webkit-transform: rotate(-5deg);
-moz-transform: rotate(-5deg);
-o-transform: rotate (-5deg);</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#2"><img
class="alignnone size-full wp-image-45955" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/example_2b.jpg" alt="Example 2b in CSS Three — Connecting The Dots" width="500" height="136" /></a></p><p><em>Note: While <code>background-clip</code> isn’t available in Firefox or Opera, the transform property is, so we’ll set this for each browser.</em></p><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#2">View the live example here</a></p><h4>Examples</h4><p>This is a fairly simple implementation, but there are quite a few really interesting and innovative examples of this technique:</p><p><a
href="http://trentwalton.com/css3/type">Trent Walton</a><br
/> An experiment of my own, combining <code>bg-clip</code> and @font-face to recreate a recent design.</p><p><a
href="http://trentwalton.com/css3/type"><img
class="alignnone size-full wp-image-45973" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/trentwalton_bgclip.jpg" alt="Trentwalton Bgclip in CSS Three — Connecting The Dots" width="500" height="286" /></a></p><p><a
href="http://neography.com/experiment/type1/">Neography</a><br
/> An excellent example of what is possible when you throw <code>rotate</code>, <code>bg-clip</code> and @font-face properties together.</p><p><a
href="http://neography.com/experiment/type1/"><img
class="alignnone size-full wp-image-45965" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/neography_rotate.jpg" alt="Neography Rotate in CSS Three — Connecting The Dots" width="500" height="286" /></a></p><p><a
href="http://www.everydayworks.com/?p=318">Everyday Works</a><br
/> One of the earliest innovative implementations of CSS text rotation I’ve seen.</p><p><a
href="http://www.everydayworks.com/?p=318"><img
class="alignnone size-full wp-image-45951" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/everydayworks_rotate.jpg" alt="Everydayworks Rotate in CSS Three — Connecting The Dots" width="500" height="286" /></a></p><p><a
href="http://www.panic.com/blog">Panic Blog</a><br
/> The Panic blog randomly rotates <code>div</code>s / posts. Be sure to refresh to see subtle changes in the degree of rotation.</p><p><a
href="http://www.panic.com/blog"><img
class="alignnone size-full wp-image-45967" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/panic_rotate.jpg" alt="Panic Rotate in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://sam.brown.tc/">Sam Brown</a><br
/> Sam&#8217;s got a really nice text-rotate hover effect on the &#8220;stalk&#8221; sidebar links.</p><p><a
href="http://sam.brown.tc/"><img
class="alignnone size-full wp-image-45968" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/sambrown_rotate.jpg" alt="Sambrown Rotate in CSS Three — Connecting The Dots" width="500" height="286" /></a></p><h3>Example #3: CSS Transforms, Box Shadow and RGBa</h3><p>What used to take multiple <code>div</code>s, pngs and extra markup can now be accomplished with a few lines of CSS code.  In this example we’ll be combining the transform property from example 2 with <code>box-shadow</code> and RGBa color.  To start things off, we’ll create 4 image files, each showing a different version of the Smashing Magazine home page over time with a class for the shadow and a specific class to achieve a variety of rotations.</p><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#3"><img
class="alignnone size-full wp-image-45956" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/example_3.jpg" alt="Example 3 in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p>Here’s the HTML:</p><pre class="brush: xml">&lt;div class="boxes"&gt;
&lt;img class="smash1 shadowed" src="../img/smash1.jpg" alt="2007"/&gt;
&lt;img class="smash2 shadowed" src="../img/smash2.jpg" alt="2008"/&gt;
&lt;img class="smash3 shadowed" src="../img/smash3.jpg" alt="2009"/&gt;
&lt;img class="smash4 shadowed" src="../img/smash4.jpg" alt="2010"/&gt;
&lt;/div&gt;</pre><p>Let’s set up the CSS for the RGBA Shadow:</p><pre class="brush: css">.shadowed {
border: 3px solid #fff;
-o-box-shadow: 0 3px 4px rgba(0,0,0,.5);
-moz-box-shadow: 0 3px 4px rgba(0,0,0,.5);
-webkit-box-shadow: 0 3px 4px rgba(0,0,0,.5);
box-shadow: 0 3px 4px rgba(0,0,0,.5);
}</pre><p>Before moving forward, let’s be sure we understand each property here. The <code>box-shadow</code> property works just like any drop shadow.  The first two numbers define the shadow’s offset for the X and Y coordinates.  Here we’ve set the shadow to 0 for the X, and 3 for the Y.  The final number is the shadow blur size, in this case it’s 4px.</p><p>RGBa is defined in a similar manner. RGBa stands for red, green, blue, alpha.  Here we’ve taken the RGB value for black as 0,0,0 and set it with a 50% alpha level at .5 in the CSS.</p><p>Now, let&#8217;s finish off the effect by adding a little CSS Transform magic to rotate each screenshot:</p><pre class="brush: css">.smash1 { margin-bottom: -125px;
-o-transform: rotate(2.5deg);
-moz-transform: rotate(2.5deg);
-webkit-transform: rotate(2.5deg);
}</pre><pre class="brush: css">.smash2 {
-o-transform: rotate(-7deg);
-moz-transform: rotate(-7deg);
-webkit-transform: rotate(-7deg);
}</pre><pre class="brush: css">.smash3 {
-o-transform: rotate(2.5deg);
-moz-transform: rotate(2.5deg);
-webkit-transform: rotate(2.5deg);
}</pre><pre class="brush: css">.smash4 {
margin-top: -40px;
-o-transform: rotate(-2.5deg);
-moz-transform: rotate(-2.5deg);
-webkit-transform: rotate(-2.5deg);
}</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#3">View the live example here</a></p><h4>Examples</h4><p>Here are a few additional sites with these properties implemented right now:</p><p><a
href="http://butterlabel.com">Butter Label</a><br
/> This site is jam packed with well-used CSS3.  Notice the <code>transform</code> and <code>box-shadow</code> properties on the subscribe form.</p><p><a
href="http://butterlabel.com/"><img
class="alignnone size-full wp-image-45948" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/butter_boxshadow.jpg" alt="Butter Boxshadow in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://www.hope140.org/endmalaria">Hope 140</a><br
/> Another site with plenty of CSS3 enhancements, Hope 140’s End Malaria campaign site features a collage of photographs that all have the same shadow &amp; <code>transform</code> properties outlined in our example.</p><p><a
href="http://www.hope140.org/endmalaria"><img
class="alignnone size-full wp-image-45962" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/hope140_boxshadow.jpg" alt="Hope140 Boxshadow in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://forabeautifulweb.com">For A Beautiful Web</a><br
/> For A Beautiful Web utilizes RGBa and <code>box-shadow</code> for the overlay video clips boxes linked from their 3 master-class DVDs.  While you’re there, be sure to note the transforms paired with the DVD packaging links.</p><p><a
href="http://forabeautifulweb.com/"><img
class="alignnone size-full wp-image-45959" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/forabeautifulweb_boxshadow.jpg" alt="Forabeautifulweb Boxshadow in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://colly.com/">Simon Collison</a><br
/> Simon Collison has implemented RGBa and <code>box-shadow</code> on each of the thumbnail links for his new website.</p><p><a
href="http://colly.com/"><img
class="alignnone size-full wp-image-45996" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/colly1.png" alt="Colly1 in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><h3>Example #4: CSS3 Animations</h3><p>If you really want to push the envelope and truly experiment with the latest CSS3 properties, you’ve got to try creating a CSS3 keyframe animation.  As a simple introduction, let’s animate a circle .png image to track the outer edges of a rectangle.  To begin, let’s wrap circle.png in a <code>div</code> class:</p><pre class="brush: xml">&lt;div class="circle_motion"&gt;
&lt;img src="/img/circle.png" alt="circle"/&gt;
&lt;/div&gt;</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#4"><img
class="alignnone size-full wp-image-45958" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/example_4a.jpg" alt="Example 4a in CSS Three — Connecting The Dots" width="500" height="134" /></a></p><p>The first step in the CSS will be to set the properties for .circle_motion, including giving it an animation name:</p><pre class="brush: css">.circle_motion {
-webkit-animation-name: track;
-webkit-animation-duration: 8s;
-webkit-animation-iteration-count: infinite;
}</pre><p>Now, all that remains is to declare properties for each percentage-based keyframe.  To keep things simple here, I’ve just broken down the 8 second animation into 4 quarters:</p><pre class="brush: css">@-webkit-keyframes track {
0% {
margin-top:0px;
}
25% {
margin-top:150px;
}
50% {
margin-top:150px;
margin-left: 300px;
}
75% {
margin-top:0px;
margin-left: 300px;
}
100% {
margin-left:0px;
}
}</pre><p><a
href="http://trentwalton.com/css3/connecting_the_dots/#4">View the live example here</a></p><h4>Examples</h4><p>A few examples of CSS3 animations online now:</p><p><a
href="http://www.hope140.org/endmalaria">Hope 140</a><br
/> Hope 140 subtly animates their yellow “Retweet to Donate $10” button’s box shadow.</p><p><a
href="http://www.hope140.org/endmalaria"><img
class="alignnone size-full wp-image-45961" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/hope_140_animation.jpg" alt="Hope 140 Animation in CSS Three — Connecting The Dots" width="500" height="264" /></a></p><p><a
href="http://hardboiledwebdesign.com">Hardboiled Web Design</a><br
/> Andy Clarke puts iteration count, timing function, duration and delay properties to good use when animating a detective shadow across the background of Hardboiled Web Design.</p><p><a
href="http://hardboiledwebdesign.com/"><img
class="alignnone size-full wp-image-45960" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/hbwd_animation.jpg" alt="Hbwd Animation in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://www.optimum7.com/css3-man/animation.html">Optimum7</a><br
/> Anthony Calzadilla has recreated the Spider Man opening credits using CSS3 with JQuery and HTML5.  You can also learn more about the process in his article <a
href="http://www.optimum7.com/internet-marketing/web-development/pure-css3-spiderman-ipad-cartoon-jquery-html5-no-flash.html">&#8220;Pure CSS3 Spiderman Cartoon w/ jQuery and HTML5 – Look Ma, No Flash!&#8221;</a>.</p><p><a
href="http://www.optimum7.com/css3-man/animation.html"><img
class="alignnone size-full wp-image-45966" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/optimum7_animation.jpg" alt="Optimum7 Animation in CSS Three — Connecting The Dots" width="500" height="300" /></a></p><p><a
href="http://themanyfacesof.com/four-oh-four/rickman.html">The Many Faces Of&#8230;</a><br
/> The Many Faces Of&#8230; animates the background position of a <code>div</code> to create an effect where characters creep up from the bottom of the page.</p><p><a
href="http://themanyfacesof.com/four-oh-four/rickman.html"><img
class="alignnone size-full wp-image-45972" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/themanyfacesof_animation.jpg" alt="Themanyfacesof Animation in CSS Three — Connecting The Dots" width="500" height="283" /></a></p><p><a
href="http://trentwalton.com/2010/03/22/css3-in-transition/">Trent Walton</a><br
/> I recently wrote a post about CSS3 usage, and animated a blue to green to yellow background image for the masthead.</p><p><a
href="http://trentwalton.com/2010/03/22/css3-in-transition/"><img
class="alignnone size-full wp-image-45990" src="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/2010/05/cssthree_in_transition.png" alt="Cssthree In Transition in CSS Three — Connecting The Dots" width="500" height="238" /></a></p><h3>OK, Dots connected!  Now what?</h3><p>Yes, all of this CSS3 stuff is insanely exciting.  If you’re like me, you’ll want to start finding places to use it in the real world immediately.  With each new experimental usage come even more concerns about implementation.  Here are a few of my ever-evolving opinions about implementing these properties online for your consideration.</p><ul><li>CSS3 enhancements will never take the place of solid user-experience design.</li><li>Motion and animation demands attention. Think about a friend waving to get your attention from across a crowded room or a flashing traffic light. Heavy-handed or even moderate uses of animation can significantly degrade user experience.  If you are planning on implementing these techniques on a site with any sort of A to B conversion goals, be sure to consider the psychology of motion.</li><li>Don’t make people wait on animations.  Especially when it comes to hover links, be sure there is an immediate state-change cue.</li><li>Many of these effects can be used in a bonus or easter-egg type of application.  Find places to go the extra mile.</li></ul><p>This is a group effort.  Don’t be afraid of failure, enlist the help of other developers, join the online discussions, and above all, have fun!</p><h3>Further Reading</h3><ul><li><a
href="http://css3.bradshawenterprises.com/">Using CSS3 Transitions, Transforms and Animation</a><br
/> A very extensive and detailed overview of CSS3 techniques for transitions, transforms and animations, with numerous examples.</li><li><a
href="http://carsonified.com/blog/design/sexy-interactions-with-css-transitions/">Sexy Interactions with CSS Transitions</a><br
/> many of us have never created animations in JavaScript, Flash or some other environment before, and are therefore not as well-versed in the unwritten rules of the animation world. This article explains how to create nice CSS transitions with CSS3.</li><li><a
href="http://sixrevisions.com/css/examples-of-css3-in-the-wild/">Examples of CSS3 in the Wild</a><br
/> Showcase of sites using CSS3 properties.</li><li><a
href="http://samuli.hakoniemi.net/css3-transitions-are-we-there-yet/">CSS3 Transitions – Are We There Yet?</a></li><li><a
href="http://www.useragentman.com/blog/2010/04/05/cross-browser-animated-css-transforms-even-in-ie/">Cross-Browser Animated CSS Transforms — Even in IE.</a></li></ul><h3>Related Articles</h3><p>You may be interested in the following related posts:</p><ul><li><a
href="http://www.smashingmagazine.com/2010/04/28/css3-solutions-for-internet-explorer/">CSS3 Solutions for Internet Explorer</a></li><li><a
href="http://www.smashingmagazine.com/2010/03/01/css-and-the-future-of-text/">The Future Of CSS Typography</a></li><li><a
href="http://www.smashingmagazine.com/2010/05/20/web-design-trends-2010-real-life-metaphors-and-css3-adaptation/">Web Design Trends 2010: Real-Life Metaphors and CSS3 Adaptation</a></li></ul><hr
/><p><small>© Trent Walton for <a
href="http://www.smashingmagazine.com">Smashing Magazine</a>, 2010. | <a
href="http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/">Permalink</a> | <a
href="http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/#comments">71 comments</a> | <a
title="Bookmark in del.icio.us" href="http://del.icio.us/post?url=http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/&title=CSS%20Three%20%20Connecting%20The%20Dots">Add to del.icio.us</a> | <a
title="Bookmark in Digg" href="http://digg.com/submit?phase=2&url=http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/">Digg this</a> | <a
title="Stumble on StumbleUpon" href="http://www.stumbleupon.com/submit?url=http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/">Stumble on StumbleUpon!</a> | <a
title="Tweet us!" href="http://twitter.com/home?status=@tweetmeme%20@smashingmag%20Reading%20'CSS%20Three%20%20Connecting%20The%20Dots'%20http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/">Tweet it!</a> | <a
title="Bookmark in Reddit" href="http://reddit.com/submit?url=http://www.smashingmagazine.com/2010/05/27/css-three-connecting-the-dots/">Submit to Reddit</a> | <a
href="http://forum.smashingmagazine.com/">Forum Smashing Magazine</a><br/> Post tags: <a
href="http://www.smashingmagazine.com/tag/css/" rel="tag">CSS</a>, <a
href="http://www.smashingmagazine.com/tag/css3/" rel="tag">css3</a>, <a
href="http://www.smashingmagazine.com/tag/html/" rel="tag">HTML</a><br/> </small></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/css-three-%e2%80%94-connecting-the-dots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TypeTalk: Setting Phone Numbers</title>
		<link>http://www.creativemanstudio.com/blog/typetalk-setting-phone-numbers/</link>
		<comments>http://www.creativemanstudio.com/blog/typetalk-setting-phone-numbers/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 05:58:06 +0000</pubDate>
		<dc:creator>Latest Blogs</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">tag:www.creativepro.com://ca0cbdddcf43c727b19ddcc8952822ab</guid>
		<description><![CDATA[Show off your typographic know-how by setting phone numbers perfectly. Small details can make a difference!<p><a href="http://www.creativepro.com/blog/typetalk-setting-phone-numbers">read more</a></p>]]></description>
			<content:encoded><![CDATA[Show off your typographic know-how by setting phone numbers perfectly. Small details can make a difference!<p><a href="http://www.creativepro.com/blog/typetalk-setting-phone-numbers">read more</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/typetalk-setting-phone-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TypeTalk: Type on a Curve</title>
		<link>http://www.creativemanstudio.com/blog/typetalk-type-on-a-curve/</link>
		<comments>http://www.creativemanstudio.com/blog/typetalk-type-on-a-curve/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 05:58:06 +0000</pubDate>
		<dc:creator>Latest Blogs</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">tag:www.creativepro.com://ab13a7e1afc17378b820f306a425c99b</guid>
		<description><![CDATA[Setting type on a curving path can alter the balance and relationships between characters. Here's how to make sure your text still looks good.<p><a href="http://www.creativepro.com/blog/typetalk-type-curve">read more</a></p>]]></description>
			<content:encoded><![CDATA[Setting type on a curving path can alter the balance and relationships between characters. Here's how to make sure your text still looks good.<p><a href="http://www.creativepro.com/blog/typetalk-type-curve">read more</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.creativemanstudio.com/blog/typetalk-type-on-a-curve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

