Sep 21
What is z-index?

The z-index property determines the stack level of an HTML element. The stack level refers to the element’s position on the Z axis (as opposed to the X axis or Y axis). A higher z-index value means the element will be closer to the top of the stacking order. This stacking order runs perpendicular ot the display, or viewport.

Graphical Z Index

The Natural Stacking Order

In an HTML page, the natural stacking order (i.e. the order of elements on the Z axis) is determined by a number of factors. Below is a list showing the order that iterms fit into a stacking context, starting with the bottom of the stack. This list assumes none of the items has z-index applied:

  • Background and borders of the element that establish stacking context.
  • Elements with negative stacking contexts, in order of appearance.
  • Non-positioned, non-floated, block-level elements, in order of appearance.
  • Non-positioned, floated elements, in order of appearances.
  • Inline elements, in order of appearance.
  • Positioned elements, in order of appearance.
Red Box
Green Box
Blue Box

The elements above do not have z-index values set; their stacking order is the natural, or default, order. The overlaps that occur are due to the negative margins.

Why Does It Cause Confusion?

Although z-index is not a difficult proerpty to understand, due to false assumptions it can cause confusion for beginning developers. This confusion occurs because z-index will only work on an element whose position property has been explicitly set to absolute, fixed, or relative.

z-index:1000;
z-index:500;
z-index:1;

 

z-index:500;
position:relative;
z-index:1000;
position:absolute;

z-index:1;
position:relative;

 

The z-index property can affect the stack order of both block-level and inline elements, and is declared by a positive or negative integer value, or a vluae of auto. A value of auto gives the element the same stack order as its parent.

z-index:500;
position:relative;
z-index:1000;
position:absolute;

z-index:auto;
position:relative;

 

 

z-index:500;
position:relative;
z-index:0;
position:relative;

z-index:100;

 

Related Posts

Sep 07
What’s a breadcrumb?

A “breadcrumb” (or “breadcrumb trail”) is a type of secondary navigation scheme that reveals the user’s location in a website or Web application. The term comes from the Hansel and Gretel fairy tale in which the two title children drop breadcrumbs to form a trail back to their home. Just like in the tale, breadcrumbs in real-world applications offer users a way to trace the path back to their original landing point.

SixRevision's Web Design and Design Bookmarks on Delicious

You can usually find breadcrumbs in websites that have a large amount of content organized in a hierarchical manner. You also see them in Web applications that have more than one step, where they function similar to a progress bar. In their simplest form, breadcrumbs are horizontally arranged text links separated by the “greater than” symbol (>); the symbol indicates the level of that page relative to the page links beside it.

When Should You Use Breadcrumbs?

Use breadcrumb navigation for large websites and websites that have hierarchically arranged pages. An excellent scenario is e-commerce websites, in which a large variety of products is grouped into logical categories.

You shouldn’t use breadcrumbs for single-level websites that have no logical hierarchy or grouping. A great way to determine if a website would benefit from breadcrumb navigation is to construct a site map or a diagram representing the website’s navigation architecture, and then analyze whether breadcrumbs would improve the user’s ability to navigate within and between categories.

Breadcrumb navigation should be regarded as an extra feature and shouldn’t replace effective primary navigation menus. It’s a convenience feature; a secondary navigation scheme that allows users to establish where they are; and an alternative way to navigate around your website.

Types of Breadcrumbs

  • Location-based
  • Location-based breadcrumbs show the user where they are in the website’s hierarchy. They are typically used for navigation schemes that have multiple levels (usually more than two levels). In the example below (from SitePoint), each text link is for a page that is one level higher than the one on its right.

    SitePoint

  • Attribute-based
  • Attribute-based breadcrumb trails display the attributes of a particular page. For example, in Newegg, breadcrumb trails show the attributes of the items displayed on a particular page:

    Newegg

    This page displays all computer cases that have the attributes of being manufactured by Lian Li and having a MicroATX Mini Tower form factor.

  • Path-based
  • Path-based breadcrumb trails show users the steps they’ve taken to arrive at a particular page. Path-based breadcrumbs are dynamic in that they display the pages the user has visited before arriving on the current page.

    Statement Tracker

Benefits of Using Breadcrumbs

  • Convenient for users
  • Breadcrumbs are used primarily to give users a secondary means of navigating a website. By offering a breadcrumb trail for all pages on a large multi-level website, users can navigate to higher-level categories more easily.

  • Reduces clicks or actions to return to higher-level pages
  • Instead of using the browser’s “Back” button or the website’s primary navigation to return to a higher-level page, users can now use the breadcrumbs with a fewer number of clicks.

  • Doesn’t usually hog screen space
  • Because they’re typically horizontally oriented and plainly styled, breadcrumb trails don’t take up a lot of space on the page. The benefit is that they have little to no negative impact in terms of content overload, and they outweigh any negatives if used properly.

  • Reduces bounce rates
  • Breadcrumb trails can be a great way to entice first-time visitors to peruse a website after having viewed the landing page. For example, say a user arrives on a page through a Google search, seeing a breadcrumb trail may tempt that user to click to higher-level pages to view related topics of interests. This, in turn, reduces the overall website bounce rate.

Mistakes in Breadcrumb Trail Implementation

  • Using breadcrumbs when you don’t need to
  • In the below example, Slicethepie risks overwhelming users with too many navigation options. The (1) primary navigation, (2) breadcrumb trail and (3) secondary navigation are very close together. The breadcrumb trail in this application offers users no added convenience because the secondary navigation for lower-level pages sits right below it. Additionally, clicking on the second-level link in the breadcrumb trail (”Music”) takes you back to the first tab (”Listen”), which mistakenly suggests that the first tab is on a higher level than the other two (”Search” and “Artist hall of fame”).

    Slicethepie

  • Using breadcrumb trails as primary navigation
  • mefeedia

    In the above example, mefeedia does not offer a primary navigation menu for viewing videos. Though there is text link navigation in the footer section, there’s no navigation menu in the body of the pages, making it hard to navigate to other sections of the website.

    mefeedia

    If you arrive on a video page directly — say, for example, through a Google search result — the only navigation option you may have is the breadcrumb trail. Or if you’ve already been browsing a website’s pages and reach a page that does not display the primary navigation menu, you will have to hit the “Back” button in your browser to access the main menu.

  • Using breadcrumbs when pages have multiple categories
  • Breadcrumb trails have a linear structure, so using them will be difficult if your pages can’t be classified into neat categories. Deciding whether to use breadcrumbs largely depends on how you’ve designed your website hierarchy. When a lower-level page is (or can be put) in more than one parent category, breadcrumb trails are ineffective, inaccurate and confusing to the user.

Breadcrumb Navigation Design Considerations

  • What should be used to separate link items?
  • The commonly accepted and most recognizable symbol for separating hyperlinks in breadcrumb trails is the “greater than” symbol (>). Typically, the > sign is used to denote hierarchy, as in the format of Parent category > Child category.

    Google

    Other symbols used are arrows pointing to the right, right angle quotation marks (») and slashes (/).

    UXmatters :: Ajax / RIAs / Web 2.0 Apps

    The choice depends on the aesthetics of the website and the type of breadcrumb used. For example, for path-based breadcrumbs in which the links do not necessarily have a hierarchical relationship to each other, using a “greater than” symbol may not convey their relationship accurately.

  • How big should it be?
  • You don’t want your breadcrumbs to dominate the page. A breadcrumb trail functions merely as an aid to users (a convenience); its size should convey this to users and thus should at least be smaller, or less prominent, than the primary navigation menu. A good rule of thumb to follow when sizing your breadcrumb trail is that it shouldn’t be the first item that grabs the user’s attention when arriving on a page.

    Campaign Monitor

  • Where should breadcrumbs be located?
  • Breadcrumb trails are usually displayed in the top half of the page, below the primary navigation menu if a horizontal menu layout is used.

Classic Text-Based Breadcrumbs

TypePad Design Assistant

NASA

Nestle uses a breadcrumb trail whose text is significantly smaller than the text on the rest of the page, effectively making it unobtrusive.

CSV

Merchand de Trucs

Bridge 55

Overstock.com uses the standard “greater than” symbol for its attribute-based breadcrumb trail. Checkboxes for product attributes are used so that users can uncheck them to filter them out.

Overstock

Replacing “>” with Other Symbols

Right-pointing Triangles

Computing | News | TechRadar UK

BP Global

Slashes

Psdtuts+

Unique Martique

Right-angled Quotation Mark

Mouse to Minx

Right-pointing Arrows

Use It

Semi-colons (:)

Target

Beyond Simple Text Links

Grooveshark

Yahoo! TV

IDEO

Apple Store

Coolspotters

Devlounge

Launchpad Lottanzb

Pizelpoodle

Guardian

Breadcrumbs for Multi-Step Processes

Statement Tracker uses a breadcrumb trail to indicate the steps involved in registering for an account, as well as a progress indicator.

StatementStacker

Flickr uses a breadcrumb trail to indicate the number of sections in the Flickr tour.

Flickr: Tour

Breadcrumbs with Sub-Navigation

MarketWatch has a fly-out sub-navigation menu that appears when you hover over a breadcrumb link.

Marketwatch

Profoto has a unique breadcrumb trail: clicking on a breadcrumb link opens an area below it that gives users additional attributes to select from.

Profoto

Cranfield University has a similar fly-out breadcrumb scheme, which serves a dual function: as an location indicator for the user and as a robust and interactive secondary navigation scheme.

Cranfield School

Lonely Planet also has a fly-out breadcrumb trail in which you can change attributes.

Lonely Planet

Clicking on a breadcrumb link takes you to that item’s page, while clicking on the downward-pointing arrow opens additional options.

Lonely Planet

MSDN has a breadcrumb trail that opens a scrollable sub-navigation list when the user hovers over a link.

MSDN

Wowhead has a multi-level sub-navigation scheme.

Wowhead

Interactive Breadcrumbs

Delicious lets you remove items in the breadcrumb trail of keyword tags to help you quickly find bookmarks.

SixRevisions's Web Design and Design Bookmarks on Delicious

Experimental Examples

Booreiland uses a breadcrumb-style navigation scheme for its primary menu, allowing visitors to quickly understand what they’re currently viewing.

Booreiland

Related Posts

Sep 06
Good Practices Of Pagination Design

  • Provide large clickable areas
  • Don’t use underlines
  • Identify the current page
  • Space out page links
  • Provide Previous and Next links
  • Use First and Last links (where applicable)
  • Put First and Last links on the outside
Bad Practices Of Pagination Design

  • Navigation options are invisible
  • The color of the links on Hugg.com has a very low contrast with the white background. The hover-effect isn’t provided.

    Hugg

  • Pagination isn’t intuitive
  • Helium.com is a perfect example for this mistake. Take a look at the screenshot below: what do the arrows stand for? For the page you’ve already visited or for the page you are currently on? And why does the link to the second page have a white background color? Why do the arrows have different colors? This is unintuitive.

    Helium

    Unintuitive designs result from the lack of structure, hierarchy and well thought-out design decisions. “Blank” pagination is as unintuitive as overcrowded design solution.

    Helium

    Not spaced out page links are harder to scan and to navigate through. Make-Believe.org as an example. The design is unintuitive.

    Make Believe

Creative Solutions Can Be User-Friendly

Slider-based Pagination Menu

Dirty.ru uses a slider-based pagination menu; users can drag it to get more available options, that means links to the older pages of the site.

DirtyRu

Further Navigation Options

Erweiterungen.de, the German version of the official Firefox extensions web-site, provides more navigation options once the visitor clicks on the “…”-button.

Erweiterungen

Simple Enumeration

Facebook

Business Week

Slanted

Computerlove

Stylegala

EveryZing, Inc.

Subcide

Colors and Shapes In Use

Fashion Style Blog

Apple Store

BilDblog

nnmru

SitePoint

Amazon

Maple

Chow

iTalk News

Empressr

Flickr

TTiqq

eBizMBA

UX Magazine

Digg

Wykop

Wikio

Become

meneame

MSDN

TutorialsGarden

Pixsy

Drupal

ulf-theis

Quintura

ProgrammableWeb

News Garbage

Dr. Web Magazin

Top Links

Blogmarks

ulf-theis

Design Snack

Sproose

Mister Wong

Social

CodeSnipers

Pagination with Manual Page Input

In some cases users can provide the number of the page they’d like to see manually, via the input-element. This is common for paginations with the limited number of options — e.g. in these designs you can’t jump to the last page if you’d like to.

New Yorker

Veer

Talk Digger

Related Posts

Sep 06

Vintage/Retro Styles

  • The Ernest Hemingway Collection
  • Radio - The New York Moon
  • MacTarnahan's Brewing Company
  • Web Development Firm
  • Red&blu Clothing
  • FortySeven Media

Handwritten Notes and Paper Clips

  • Viget Labs | We Build Web Business
  • Web Site Content Writers | Point of Entry Consulting, Inc.
  • Home Design Find
  • Chemistry Recruitment
  • Web Design & Development

Grungy

  • Matt Mullenweg - aka Photo Matt - on WordPress, Web, Jazz, Life, and Photography
  • Basmati Tree
  • Edgepoint Church | Awesomely Different

Splatter Ink

  • olliekav.com: All Things Design, Music and More
  • Tim Kadlec

Watercolor

  • Springtime in Tennessee
  • Web Design Blog | Web Design Standards | Viget Inspire
  • DailyCandy - The Latest Fashion Designers, Weekend Events & Products

Collage

  • Summertime in Tennessee
  • Design*Sponge

Sketches and Handwritten Fonts

  • NJ REBEL | New Jersey Youth Anti Tobacco Movement
  • The Official Online Marketplace for Creative Services - Unlimited Creativity - BootB
  • B.N.WEISS | MUnich | New York | Corporate Design
  • Threadless Graphic T-shirt Designs
  • Freelance Web Designer - Richard McCoy

Big Fonts

  • Red is White T-shirts - Faith Inspired Designer Tees | Submit, Rate, Buy
  • IJsfontein: home

Script Fonts

  • Dara's Garden - Weddings, Receptions, and Events in Knoxville, TN
  • Hot Meteor

Wood Pattern

  • Komodo Media - Web, Logo & Identity Design Company - CSS, jQuery, Javascript, & Web Design Blog
  • David Hellmann - Grafikdesign, Webdesign, Entwicklung, (X)HTML, CSS, Wordpress
  • Candes | Cristian Neagu - UI Designer, Developer, Consultant

Zig Zag Pattern

  • Wedding Websites by eWedding.com
  • UPPERCASE - Welcome
Related Posts