Blog Post RSS ?

Blogs » JavaScript & CSS » Crazy CSS
 

Crazy CSS

by Simon Willison

There’s a long tradition in the CSS community of pushing CSS to its limits to discover new tricks. These experiments are inherently valuable, as no matter how bizzare or useless they may seem they help improve people’s understanding of exactly how CSS works. Case in point: Chris Hester’s CSS Pencils, where CSS and a lot of div elements are used to display an image that looks for all intents and purposes like a standard gif, jpeg or PNG. A styleswitcher can be used to change the image. This technique has precisely no advantages over normal images, and comes with a hefty additional bandwidth overhead. However, it still demonstrates some interesting points about CSS, which Chris expands upon in his explanation of the demo.

While we’re on the subject of weird CSS tricks, Border Slants is something every CSS user can benefit from understanding. It’s the trick behind the impressive Sweet Heart demo, and the driving force behind Tantek’s awe inspiring hexagonal site map (doesn’t work in IE/Windows, but does work in pretty much every other modern browser). Chris Hester’s CSS House also makes extensive use of this technique.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. 101 Essential CSS Tips, Tricks & Hacks The team at SitePoint is pleased to announce a new...
  2. Interesting CSS Quirks: Border-spacing I came across a CSS peculiarity recently that had me...
  3. Zoom In With A jQuery Plugin Anything Zoomer is a jQuery plugin which allows you to...
  4. A Little-known Way to Replace Some Scripts with CSS Counters Replacing executable scripts with style sheets often improves performance and...
  5. The Two Ways of Sizing Absolute Elements in CSS Most developers have used left, right, top and bottom properties...

This post has 8 responses so far

Sponsored Links

SitePoint Marketplace

Buy and sell Websites, templates, domain names, hosting, graphics and more.

Follow SitePoint on...