<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.3.3" --><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Bits &amp; Pixels</title>
	<link>http://bitsamppixels.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Thu, 02 Oct 2008 12:45:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/BitsPixels" type="application/rss+xml" /><item>
		<title>Creating my header effect</title>
		<link>http://feeds.feedburner.com/~r/BitsPixels/~3/245771335/</link>
		<comments>http://bitsamppixels.com/2008/03/05/creating-my-header-effect/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 23:04:52 +0000</pubDate>
		<dc:creator>Fredrik W</dc:creator>
		
		<category><![CDATA[Bits&amp;Pixels]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Swedish Fika]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://bitsamppixels.com/2008/03/05/creating-my-header-effect/</guid>
		<description><![CDATA[Since I got so many email requests from people asking me how I created the effects on my header image and menu, I put together a little tutorial describing how I did it over at Swedish Fika. I hope you enjoy it and learn something from it!
PS. If you haven&#8217;t checked out or heard of [...]]]></description>
			<content:encoded><![CDATA[<p>Since I got so many email requests from people asking me how I created the effects on my header image and menu, I put together a little tutorial describing how I did it over at <a href="http://swedishfika.com/2008/03/04/creating-a-fading-header/" title="Creating a fading header">Swedish Fika</a>. I hope you enjoy it and learn something from it!</p>
<p>PS. If you haven&#8217;t checked out or heard of <a href="http://piclens.com/">PicLens</a> I strongly advise you to. It&#8217;s the coolest Firefox plugin I&#8217;ve seen! Image browsing has never been more fun!</p>
<img src="http://feeds.feedburner.com/~r/BitsPixels/~4/245771335" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://bitsamppixels.com/2008/03/05/creating-my-header-effect/feed/</wfw:commentRss>
		<feedburner:origLink>http://bitsamppixels.com/2008/03/05/creating-my-header-effect/</feedburner:origLink></item>
		<item>
		<title>Cross-browser transparent columns</title>
		<link>http://feeds.feedburner.com/~r/BitsPixels/~3/233454560/</link>
		<comments>http://bitsamppixels.com/2008/02/11/cross-browser-transparent-columns/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 23:37:03 +0000</pubDate>
		<dc:creator>Fredrik W</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Bits&amp;Pixels]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://bitsamppixels.com/2008/02/11/cross-browser-transparent-columns/</guid>
		<description><![CDATA[Transparency is an effect that, unfortunately, haven&#8217;t gotten much use during the web&#8217;s history. One of the biggest reason for this is the lack of support for PNGs with alpha channels in IE6. This is starting to change with IE7 and Firefox gaining more and more ground on Windows systems.
As most web developers are aware [...]]]></description>
			<content:encoded><![CDATA[<p>Transparency is an effect that, unfortunately, haven&#8217;t gotten much use during the web&#8217;s history. One of the biggest reason for this is the lack of support for PNGs with alpha channels in IE6. This is starting to change with IE7 and Firefox gaining more and more ground on Windows systems.</p>
<p>As most web developers are aware o it&#8217;s possible to use PNGs with alpha channels, but this is filled with lots of problems and doesn&#8217;t work very well when you place content on top of them.</p>
<p>There is a way to make content transparent, using the opacity tag and a proprietary opacity filter in IE-based browsers. The problem with this CSS-property is that all children to the transparent element will be transparent as well, which often isn&#8217;t the desired effect.</p>
<p>Knowing all this, how do we create transparent columns that can work in all browsers? What if we could use the opacity property but still have the content opaque?</p>
<p><img src="http://bitsamppixels.com/wp-content/uploads/2008/02/transparent-columns.gif" alt="transparent-columns.gif" class="right" />This is possible using some clever use of CSS-positioning. What we&#8217;ll be doing is having a parent element that contains two children. One transparent background that fills the entire width and height of the parent, and one child that contains the content. This way we can have a transparent background while the content remains opaque.</p>
<h2>Let&#8217;s get working</h2>
<p>The basic markup we will be using is as follows:</p>
<pre class="css">&lt;div id="column-1" class="container"&gt;
  &lt;div class="overlay"&gt;&lt;/div&gt;
  &lt;div class="content"&gt;
    &lt;h2&gt;Content&lt;/h2&gt;
  &lt;/div&gt;
&lt;/div&gt;</pre>
<p>First we want to set the container to position: relative; float: left; this allows us to use relative absolute positioning and  makes the parent to contain all children if they are floated.</p>
<pre class="css">#column-1 {
  position: relative;
  float: left;
  width: 500px; /* remember to set a width */
}</pre>
<p>Not let&#8217;s take care of the transparency on the &#8220;overlay&#8221;-div.</p>
<pre class="css">.overlay{
  position: absolute;
  top: 0; /* These positions makes sure that the overlay */
  bottom: 0;  /* will cover the entire parent */
  left: 0;
  width: 100%;
  background: #000;
  opacity: 0.65;
  -moz-opacity: 0.65; /* older Gecko-based browsers */
  filter:alpha(opacity=65); /* For IE6&amp;7 */
}</pre>
<p>Ok. Now let&#8217;s style the content. It&#8217;s important to set a fixed width.</p>
<pre class="css">
#column-1 .content {
width: 460px;
padding: 20px;
}</pre>
<p>Ok, almost done. As you may have noticed (if you&#8217;re following me, that is) the text is placed under the transparent overlay div. To fix this, we set the content to position: relative;</p>
<pre class="css">.content {
  position: relative;
}</pre>
<p>Ok, now it works in all browsers except for IE6. Let&#8217;s fix that. Enter the following CSS expression:</p>
<pre class="css">/* Lets use the * html hack so only IE6 reads the rule */
* html #column-1 .overlay {
  height: expression(document.getElementById("column-1").offsetHeight);
}</pre>
<p>If you plan on using it on a live site, you may want to use <a href="http://www.quirksmode.org/css/condcom.html">conditional comments</a> instead of the star html hack. But for this example it will suffice.</p>
<h3>Drawbacks</h3>
<p>It&#8217;s also noteworthy that it won&#8217;t work in IE6 if javascript is disabled, but it degrades gracefully. Given the last survey of IE6 I saw which was about 32% and the (roughly) 10% that surf the web without Javascript, only 3% of your visitors will even notice this, which I find totally acceptable.</p>
<p>Another downside is that each column needs it&#8217;s own id and it&#8217;s own CSS rule for IE6. I can live with that though.</p>
<h3>Conclusion</h3>
<p>And there you have it! Here&#8217;s a <a href="http://bitsamppixels.com/transparent-columns/">working example</a>. Cross-browser transparent columns. This is the same technique as I use on this site. Floats work too - which makes it possible to create multi-column transparent-column layouts.</p>
<p><span class="download">Download</span> the source-file<a href="http://bitsamppixels.com/wp-content/uploads/2008/02/transparent-columns.zip" title="transparent-columns.zip"> transparent-columns.zip</a>.</p>
<h3>Translations</h3>
<p><a href="http://www.frogx3.com/2008/02/14/css-columnas-transparentes/">Spanish</a><br />
<a href="http://www.alexilin.ru/krossbrauzernye-poluprozrachnye-kolonki/">Russian</a></p>
<img src="http://feeds.feedburner.com/~r/BitsPixels/~4/233454560" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://bitsamppixels.com/2008/02/11/cross-browser-transparent-columns/feed/</wfw:commentRss>
		<feedburner:origLink>http://bitsamppixels.com/2008/02/11/cross-browser-transparent-columns/</feedburner:origLink></item>
		<item>
		<title>Welcome</title>
		<link>http://feeds.feedburner.com/~r/BitsPixels/~3/233454561/</link>
		<comments>http://bitsamppixels.com/2008/02/10/welcome/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 22:39:53 +0000</pubDate>
		<dc:creator>Fredrik W</dc:creator>
		
		<category><![CDATA[Bits&amp;Pixels]]></category>

		<guid isPermaLink="false">http://bitsamppixels.com/index.php/2008/02/10/welcome/</guid>
		<description><![CDATA[I welcome you all to the new version of my hideout on the web, formerly known as warnis.com. As old visitors will noticed, things have changed drastically here.
A fresh start
I&#8217;ve gone for a complete overhaul of the site. The name, branding and theme of the site are all brand new. The time felt right for [...]]]></description>
			<content:encoded><![CDATA[<p>I welcome you all to the new version of my hideout on the web, formerly known as warnis.com. As old visitors will noticed, things have changed drastically here.</p>
<h2>A fresh start</h2>
<p>I&#8217;ve gone for a complete overhaul of the site. The name, branding and theme of the site are all brand new. The time felt right for a face lift, and in this case, a big one. I wanted a site that put more emphasis on me than my old one, while having a brand that wouldn&#8217;t be as closely connected to my name as the old name was.</p>
<p>Flexibility was another very important aspect to me when building this site. I wanted to create a solid foundation to be able to build further upon if I had the need to, which the old design didn&#8217;t quite give me. This led to me writing less and paying less attention to it, which I regret in hindsight.</p>
<h3>The design</h3>
<p>When creating the design I had two goals. To pay as much attention to detail as possible and to add minor functionality that improve the overall experience. It&#8217;s got lots of small javascript enhancements that aim to make the user experience as pleasant as possible.</p>
<p>The other goal was to not feel restricted by the limitations of browsers and CSS when creating it, which I really feel as I&#8217;ve accomplished (transparent columns in IE6, anyone?).</p>
<p>I&#8217;m very satisfied with the end result and I hope you all will like it as much as I do.</p>
<h3>Old posts</h3>
<p>I&#8217;ve exported the old posts from warnis.com that people seemed interested in reading (which pretty much means the posts that got search engine traffic). You can find them in the archives.</p>
<h2>The future</h2>
<p>I&#8217;m going to focus more on writing articles on web development and use it less as a blog (hence the name &#8220;Articles&#8221; instead of Journal or Blog). I&#8217;m going to publish thoughts, tips and reflections on web development, web design, user experience and programming. This means that I won&#8217;t publish anything new unless I have something of importance (to me, at least) to say.</p>
<p>You can expect some articles on creating this site in the coming days</p>
<img src="http://feeds.feedburner.com/~r/BitsPixels/~4/233454561" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://bitsamppixels.com/2008/02/10/welcome/feed/</wfw:commentRss>
		<feedburner:origLink>http://bitsamppixels.com/2008/02/10/welcome/</feedburner:origLink></item>
		<item>
		<title>Creating glossy buttons</title>
		<link>http://feeds.feedburner.com/~r/BitsPixels/~3/233454562/</link>
		<comments>http://bitsamppixels.com/2007/04/26/creating-glossy-buttons/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 16:28:01 +0000</pubDate>
		<dc:creator>Fredrik W</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://localhost:8080/bitsandpixels/index.php/2007/04/26/creating-glossy-buttons/</guid>
		<description><![CDATA[Alright, today we&#8217;re going to create glossy OSX/Web2.0 style buttons. But we&#8217;re going to take a different, more flexible approach to creating them.
The most usual techniques (that I&#8217;ve seen, at least), usually require some form of blending and use of the select-tool to for creating the gloss. This quickly becomes a bit tedious when you [...]]]></description>
			<content:encoded><![CDATA[<p>Alright, today we&#8217;re going to create glossy OSX/Web2.0 style buttons. But we&#8217;re going to take a different, more flexible approach to creating them.</p>
<p>The most usual techniques (that I&#8217;ve seen, at least), usually require some form of blending and use of the select-tool to for creating the gloss. This quickly becomes a bit tedious when you want to create multiple buttons with different forms, sizes and colours. So let&#8217;s take a different approach to creating these buttons.</p>
<h3>Using layer styles</h3>
<p class="clear"><a href="http://bitsamppixels.com/wp-content/uploads/2007/04/1.jpg" title="Glossy btn 1" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/1.thumbnail.jpg" alt="Glossy btn 1" /></a> Alright. Let&#8217;s create some good looking buttons from just one layer! Grab your rounded rectangle tool (U) on the keyboard and then select the rectangle. A corner radius of 20px will do well, also remember to make sure anti-aliasing is checked! Create a new layer and draw a rectangle on it in any colour you wish (we&#8217;ll change this later anyway).</p>
<p class="clear"><a href="http://bitsamppixels.com/wp-content/uploads/2007/04/2.jpg" title="Glossy btn 2" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/2.thumbnail.jpg" alt="Glossy btn 2" /></a><a href="http://bitsamppixels.com/wp-content/uploads/2007/04/2.jpg" title="Glossy btn 2" class="right"><br />
</a>Alright, now let&#8217;s get on to create a little more depth to it. Use fairly dark shades of gray, like so:</p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/3.jpg" title="Glossy btn 3" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/3.thumbnail.jpg" alt="Glossy btn 3" /></a><br />
Ok, now for the trick which will provide us an easy way to change the button&#8217;s colour later on. Add a &#8220;Color Overlay&#8221; layer style, chose whichever colour you wish (bright shades, saturated shades work the best) and change the blending mode to Linear Dodge.</p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/4.jpg" title="Glossy btn - 4" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/4.thumbnail.jpg" alt="Glossy btn - 4" /></a><br />
Alright, let&#8217;s get some more depth on that button, and combine it with a nice glossy effect. Add a &#8220;Bevel and Emboss&#8221; layer style, either use my settings or have a play with them yourself.</p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/5.jpg" title="Glossy btn - 5" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/5.thumbnail.jpg" alt="Glossy btn - 5" /></a><a href="http://bitsamppixels.com/wp-content/uploads/2007/04/6.jpg" title="Glossy btn - 6" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/6.thumbnail.jpg" alt="Glossy btn - 6" /></a><br />
There&#8217;s an alternative way of adding a gloss (the results aren&#8217;t quite as good though) which I&#8217;ll show you later on.<br />
Now let&#8217;s add an inner and outer glow to define the button&#8217;s edges a tad.<br />
<a href="http://bitsamppixels.com/wp-content/uploads/2007/04/5.jpg" title="Glossy btn - 5"><br />
</a></p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/9.jpg" title="Glossy btn - 9" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/9.thumbnail.jpg" alt="Glossy btn - 9" /></a> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/7.jpg" title="Glossy btn - 7" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/7.thumbnail.jpg" alt="Glossy btn - 7" /></a><br />
Alright, now let&#8217;s add a drop shadow and adjust the blending options a bit, and we&#8217;re all set!</p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/8.jpg" title="Glossy btn - 8" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/8.thumbnail.jpg" alt="Glossy btn - 8" /></a><br />
Alright, here&#8217;s the alternative way of creating the gloss. First of all, uncheck &#8220;Bevel and Emboss&#8221;. Then add an &#8220;Inner Shadow&#8221; using these settings.</p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/10.jpg" title="Glossy btn - 10" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/10.thumbnail.jpg" alt="Glossy btn - 10" /></a><br />
Alright, now that we&#8217;ve got our layer style, let&#8217;s save it so we can user it whenever we wish without having to go through this entire process all over again.</p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/11.jpg" title="Glossy btn - 11" class="right"><img src="http://bitsamppixels.com/wp-content/uploads/2007/04/11.thumbnail.jpg" alt="Glossy btn - 11" /></a><br />
Alright, now we&#8217;ve got glossy buttons in multiple colours and shapes with the click of a button. Have fun using them! <img src='http://bitsamppixels.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="clear"> <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/11.jpg" title="Glossy btn - 11" class="right"><br />
</a><br />
I&#8217;ve uploaded the .psd containing the layer style if you&#8217;re too lazy to make it yourself. You can grab it <a href="http://bitsamppixels.com/wp-content/uploads/2007/04/glossy.psd">here</a>.</p>
<p class="clear"> If you like this article, please <a href="http://digg.com/design/Easily_create_flexible_Web2_0_OSX_buttons_in_Photoshop">digg</a> it to help spread the word!</p>
<img src="http://feeds.feedburner.com/~r/BitsPixels/~4/233454562" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://bitsamppixels.com/2007/04/26/creating-glossy-buttons/feed/</wfw:commentRss>
		<feedburner:origLink>http://bitsamppixels.com/2007/04/26/creating-glossy-buttons/</feedburner:origLink></item>
		<item>
		<title>Photoshop shortcuts</title>
		<link>http://feeds.feedburner.com/~r/BitsPixels/~3/233454563/</link>
		<comments>http://bitsamppixels.com/2007/04/25/photoshop-shortcuts/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 19:07:11 +0000</pubDate>
		<dc:creator>Fredrik W</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://localhost:8080/bitsandpixels/index.php/2007/04/25/photoshop-shortcuts/</guid>
		<description><![CDATA[Nik Ainley, who also go under the pseudonym shinybinary recently published a list of Photoshop shortcuts that he finds useful and uses frequently in his workflow.
It&#8217;s a really great read, and even if I knew most of them, I learned a few (like holding the ALT-key when using the text-tool and then pressing the left/right [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://shinybinary.com/">Nik Ainley</a>, who also go under the pseudonym <a href="http://shinybinary.deviantart.com/">shinybinary</a> recently published a <a href="http://shinybinary.deviantart.com/journal/11478654/">list of Photoshop shortcuts</a> that he finds useful and uses frequently in his workflow.</p>
<p>It&#8217;s a really great read, and even if I knew most of them, I learned a few (like holding the ALT-key when using the text-tool and then pressing the left/right arrow allows you to adjust the kerning between individual letters).</p>
<p>I&#8217;d like to add a few myself, which I find invaluable in my workflow:</p>
<ul>
<li>Holding CTRL while clicking on a layer in the layers palette will select every pixel in that layer</li>
<li>CTRL+SHIFT+i inverts your current selection</li>
<li>CTRL+Backspace/ALT+Backspace fills your current layer/selection with your foreground/background colour</li>
<li>If you have snap to guides enabled, holding CTRL will temporarily disable this function (works with most tools!)</li>
<li>Holding ALT while using the rectangular marquee will scale the marquee box from the middle instead of the bottom corner</li>
</ul>
<p>Have you got any good tips for a smoother Photoshop workflow? Feel free to share them in a comment!</p>
<p>Oh, and by the way, don&#8217;t forget to check out his art &ndash; amazing stuff!</p>
<img src="http://feeds.feedburner.com/~r/BitsPixels/~4/233454563" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://bitsamppixels.com/2007/04/25/photoshop-shortcuts/feed/</wfw:commentRss>
		<feedburner:origLink>http://bitsamppixels.com/2007/04/25/photoshop-shortcuts/</feedburner:origLink></item>
	</channel>
</rss>
