I decided that when I finally got around to redesigning superflippy.net, I wanted to bring it up to date with XHTML and a table-less layout. But I didn't want to replace the fun, cartoonish aesthetic with severe rectangular boxes. Everyone's doing squares these days, so I've got to be different and keep my rounded corners.
I found a few good solutions online: Dan Loda's Rounded corners with CSS, Albin.Net's Bullet-Proof Rounded Corners, and Eric Meyer's curvelicious. I chose to go with Mr. Loda's Rounded Corners with Borders because it didn't require too much additional CSS to implement and it came the closest to simulating the look of the original superflippy.net design.
I made one significant change from the original example: instead of having a div of class "box" inside a div with a unique ID, I gave my div with a unique ID the class "box".
Original HTML:
<div id="example"> <div class="box">
New HTML:
<div id="example" class="box">
The real test is, of course, whether or not this design stands up to the abuse of everyday content, like graphics and tables and embedded Flash and such, since I've got a lot of legacy content that I want to migrate. Here are a few things I noticed while playing around with content.
position:relative and width:100%. This keeps the bottom div from floating up to the side of the tables in IE6, or drawing above the tables in Mozilla. Basically, it makes everything nest visually the way it does in the source.clear:both for list items for Safari users. ![]() |
| Two Guys with Backpacks |
![]() |
| A Deserted Beach |
![]() |
| A Police Car |