Welcome to the Personal Website of George Michael Huff

Feb 27 2007

Traditionally, when cutting up a Photoshop layout, we all used to think of the entire thing like a jigsaw puzzle. Overlapping elements were an illusion because the element that appeared to overlap was really being cut up and then fit back together.

And then came the png. While the PNG most definitely has issues across the different browsers, there are ways to get it to play nicely with whatever site being built. Yes, it usually involves a CSS hack. No, it does not validate. However I believe it is more important to start thinking of a layout as a series of layers overlapping, versus the traditional jigsaw puzzle.

Here are some good resources to get up to speed on PNG’s in Internet Explorer.

Make Transparency Work in Internet Explorer
Cross-Browser Variable Opacity with PNG: A Real Solution


The main difference between cutting and overlapping websites is thinking of your html/css as an extension of photoshop, versus an extension of something like imageready. Photoshop comps are designed and built with layers, transparency, and the grid in mind. Imageready takes what is in photoshop, flattens it and cuts it up into pieces, which are to be put together with html and css.


The two sites that inspired this post both have use of pngs. The first, Bedford Brown, designed by Jeff Reynolds drops a big hood ornament on the website and it looks great, not to mention adds depth and interest. The second, was my attempt at borrowing some of that element for Nicholas Galanin’s website.

Bedford Brown was an experiment in starting off simple. Each page required four png’s. The header, the content background, the footer, and the hood ornament. There are also four layers to each page. The background, the shell (composed of the header, content, and footer), the content itself, and the hood ornament.

Nicholas Galanin’s site was the challenge. It has been awhile since I almost gave up while trying to code a website. In dealing with cross browser compatibility while adhering to web standards, I got a headache building this thing. However, I pushed through it and eventually I launched a site that I am quite proud of. This site has several different PNG’s and is a clear cut example of overlapping a site versus cutting it up. In fact, I’m not sure this site could have been built by just cutting it up. Perhaps someone can correct me if I am wrong.

My advice is that if you are just beginning, try something simple. Give your logo a little drop shadow love and save it as a png (make sure the background in photoshop is transparent). Then position your background slightly over the left edge and top (if that fits what you are designing). Just keep it simple.

Ultimately, designing with the overlapping mindset allows us to break the mold a little bit of what has been traditionally on the web. We get to have fun!

Popularity: 20% [?]

Comments for building with layers and pngs

    Gravatar

    Steve James March 1st, 2007 at 11:06 am

    Ah, but your CSS can and will validate if you use a Javascript technique I came up with!

    Go to http://www.utahtechspotlight.com for a reference on how I get my CSS to validate with non-compliant code. I basically include an external JavaScript file, in this case called “javascript_mozilla_hacks.js”. In the JavaScript I basically determine if the user has a Mozilla browser, if so then I include a special stylesheet, via JavaScript, with invalid CSS - this example just gets rid of active marques on A tags. I execute all the hacky, invalid code I want in this stylesheet.

    Since the code is ran through JavaScript, validaters and such do not check these hacky “on-demand” stylesheets, and your page will validate!

    Is this an absolute solution? Not, really. However, why sacrifice a good design for validation purposes. Fool the validators until CSS3 comes around!

    Gravatar

    George March 3rd, 2007 at 1:19 pm

    Would this be the “Steve James IE Validation Hack?”

    Don’t you think you can completely avoid IE Hacks (except for PNG’s) with any layout?

    Ever since going through the Nicholas Galanin experience, I think it’s possible.

    And what about the outline: none tag? I hate those outlines.

You Say about building with layers and pngs

Welcome to the Website of Eleven3. I like to build clean websites, period.

This Is George Huff

He is a web designer / entrepreneur / conspirator / blogger / fianceé living in Portland, Oregon.

When not fully immersed building websites, he runs a record label, writes music, throws a music festival, grows vegetables, and happens to be a huge advocate of his friends and family.

Currently My Latest Twitter

it's slowly turning into a work night. Gotta say it is going to be tough getting anything done on a Sunday for awhile. 5 hrs ago Follow Me

Work by Industry

Sport

  • Body by Dance
  • This is American Soccer
  • Clint Dempsey

Arts and Marketing

  • Tease Marketing
  • HomeSkillet Fest
  • Nicholas Galanin

Misc

  • Noyes Development
  • Ecoshuttle

Work by project type

Blogs

  • This is American Soccer
  • Nicholas Galanin
  • Clint Dempsey
  • Body by Dance

Websites

  • Tease Marketing
  • HomeSkillet Fest
  • Noyes Development
  • Ecoshuttle

Print

  • Sign of Life
  • HomeSkillet Fest '07 Catalog

Contact how can I help ya?

I am always open for work - sometimes more than others. Send me a message if you have a project that would be of interest. Cheers.

Send a copy to yourself