design & illustration

CSS: testing ground

Actually this whole site is a testing ground, but sometimes I'll be delving into something interesting but won’t have a place to actually use it … so I throw odds and ends of css experiments into this section of the site.

tooltip hovers using pure CSS

Admittedly the following content doesn’t look like much when viewed with Internet Explorer. For full effect it is best viewed using a standards compliant browser like Google Chrome, Firefox, or Opera.

This first one uses positioning to place the tooltip content out of the borders of the browser window. When the cursor hovers over the <a> tag the tooltip content is invoked by repositioning it in relation to the <a> tag.

This second example uses the CSS attribute "display:none" to hide the tooltip. Hovering over the list item invokes the tooltip content by changing the CSS attribute to "display:block."

pill button using pure CSS and no images

If you're viewing with IE you are probably wondering what the fuss is all about. But if viewing with a WebKit-based browser like Google Chrome or Safari you're seeing something very different. Why bother if the majority of people use IE? Well, because as of the first half of 2010, analyst estimates place the cumulative number of mobile handsets shipped with a WebKit-based browser at 350 million. WebKit will continue to dominate the mobile industry as the market penetration of smartphones, the engine's primary contributors, increases.

Pill ButtonPill ButtonPill ButtonPill Button