Decaflon

Welcome to Decaflon! Where the geeks hang out: Signup or Login Here
Decaflon is proudly hosted by (mt) Media Temple.  We recommend them for your web hosting needs.
Clips: Popular Clips Upcoming Clips Notes: All Notes

I'm a geek, so I like checking out the source code to new sites, especially Apple.com. They do so many cool things on their web properties that it's always worth a look to see how they accomplish their web UI wizardry.

The biggest change to the Apple website is the navigation at the top, what they call the "global navigation". Previously it was a tab bar that also included a secondary level of navigation below for quick access to various parts of the site. Over the years they've added tabs and added sub-links, enough that they felt it was overblown and needed a complete refresh. The new look is made to sit on top of the page's existing background color or image (iPhone pages have a gradient for a background) and I took a screenshot of 3 navigation bar states: black, white, grey:

Apple.com Navigation

Although the text in the navigation buttons is Myriad Pro, it's not HTML text but rather an image replaced element. I was a little disappointed to see that they didn't use my negative text-indent technique, but you can't win 'em all :)

The web team actually uses the Leahy/Langridge method, where the height of the tab is set to 0, but a padding-top of 38px expands the tab vertically and allows the background to show. An interesting thing that Apple does is use one large background image, and then shift the background-position in order to only show parts of it at one time, effectively masking the other areas. I've been doing this for awhile (and you should too!) because the browser only has to load an image once, and there is no flickering on a hover state while the user waits for the browser to grab a new image for the tab. This technique was pretty hot when it first came out (Pixy's Fast Rollovers published July 2003) but you newer web designers have probably been using it without knowing its history. I think the most exciting time in the web industry was summer four years ago, when all the image replacement, rollover, and tab navigation articles came out within a few months of each other.

Some of the CSS that makes this possible:


/* BUTTONS */
#globalheader #globalnav li#gn-store a { background-position: 0 0; }
#globalheader #globalnav li#gn-store a { background-position: -117px 0; }
#globalheader #globalnav li#gn-mac a { background-position: -234px 0; }
#globalheader #globalnav li#gn-ipoditunes a { background-position: -351px 0; }
#globalheader #globalnav li#gn-iphone a { background-position: -468px 0; }
#globalheader #globalnav li#gn-downloads a { background-position: -585px 0; }
#globalheader #globalnav li#gn-support a { background-position: -702px 0; }

The image that their CSS is moving around is this:

Apple.com Navigation Background

My only problem with the new navigation's design is the Apple logo on the left side. Apple's been switching to a more minimal representation of their logo (just the apple as a solid object, no gradient) but for the navigation they switched back to the glossy version which strikes me as an afterthought. I wouldn't be surprised if they changed out the Apple logo in the navigation in the next few days after one of their marketing executives realizes the miscue.

Although the text in the navigation buttons is Helvetica

I'm pretty sure the typeface used in the navigation is not Helvetica, but rather Myriad.

Wow, that is a very in depth look. It looks so minimal and easy it's almost hard to believe how much stuff there is in the background... just to make a navigation bar.

I hope you're right about the little Apple logo. I'm a much, much bigger fan of the solid one too.

I think the global navigation does a great job of breaking the site down into major sections although it can be easy to miss certain things (ie. Quicktime). As for the implementation they did well in their use of the technique. It loads quickly and it is pretty seamless.

Also does anyone remember the sections used for the old site?

MAIN:
Apple Icon | STORE | Ipod + iTunes | .Mac | Quicktime | Support | Mac OS X

SECONDARY:
Hot News | Get A Mac | Hardware | Software | Made4Mac | Education | Pro | Mac@Work | Developer | Where To Buy

As of Aug. 21, 2006.
Source

Ah, thank you very much, interesting how they simplified it then by using less. Of course that doesn't always make things simpler, but I think it will in this case.

Yup, Myriad, I'm an idiot :)

Um, I beg to disagree, Mike. This is a great article. Wonderful read.

Nice work on this Mike, do you have ideas about the slick navigation sidebars aswell?

Left a response over at your sidebar thread :)

Hey,
cool review of that site I found gorgeous!!!
But, does anyone know what is that cool effect they used to open that window to play the demos (after you click on "watch the demo")?
I am sure that I saw that on another site before the new apple design.

My guess is they are using Lightbox to have the video's appear over the top of the pages.

Lightbox is my first instinct too.

yep, bookmarked this post, must read it again when i have more time...

good article, hope read more such good articles here... thanks mike!

Perhaps it's just my dislike of Macs (I know I'm mostly in a minority here, particularly in this section!), but would people really be ooing and awwing over this design if it were any site other than Apple's?

It's pretty plain, and I don't mean that in a "oh, wow, look at their minimalistic approach" sort of way. To Apple's credit, I think the subpages are a million times better than the index, but then I think they commit the crime of information overload. I have trouble imagining a n00b user navigating comfortably around their support section, for instance.

Anyway, just my two cents. You did write a good article, Mike!

Please Login To Leave A Comment

Decaflon Sponsors Get in touch if you want in.

 

Decaflon is part of the Chawlk Network of sites.

9 Great Places To Visit, Hang Out, & Meet New People

What's new and interesting at other Chawlk Network sites: