Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Diagonal shapes with CSS

Information on Border Slants (via Paul Hammond). Border slants are the effect whereby diagonal lines can be created using pure CSS, by taking advantage of the fact that thick borders around a box meet at an angle. This article describes the effect in detail and shows how it can be used to achieve a number of interesting shapes, then goes on to show off with an impressive Valentine’s Day Heart. See also Tantek’s awesome pentagon site map and A Study of Regular Polygons.

This is Diagonal shapes with CSS by Simon Willison, posted on 4th July 2003.

View blog reactions

Next: XML-RPC Errata

Previous: Simple Python Sockets

6 comments

  1. Okay, this is utterly sick-puppy. I love it! Even more so because I actually understand it. Maybe this is what the textartisan redesign needs! Slants!

    Dorothea Salo - 4th July 2003 18:36 - #

  2. You should also check his frontpage: http://www.infimum.dk/ For some reason that page is in some kind of weird language, but the links on that page are worthwhile. http://www.infimum.dk/privat/slants.html is also nice to see.

    Martijn - 4th July 2003 19:45 - #

  3. That is freakin' awesome.

    Noel D. Jackson - 4th July 2003 21:39 - #

  4. This.. is awesome! By the way, the language is danish (.dk) and the top text says something like "Welcome, this overview page is only here to link to some of the independent pages on this site" Seems like a cool blog btw.. bookmarked :)

    Eivind Lie Nitter - 4th July 2003 23:03 - #

  5. Thanks :) There is an English index page at http://www.infimum.dk/DHTMLindex.html.

    Lasse R. Nielsen - 12th October 2003 00:14 - #

  6. Shit

    Jones - 15th June 2004 14:11 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/07/04/diagonalCSS

A django site