CSS might sound like a language that only geeks can decipher, but its accessibility and power has turned the web into a beautiful playground. This is the language of design, and it’s about to blow your mind.
We all know there’s something called HTML that powers the internet, but it only represents the content on a page like words and pictures. Alone it looks ugly as sin, but a few lines of CSS and simple HTML can be transformed into any style you like — and crucially, can be changed with ease in the future.
What is it about CSS that is fuelling the digital design revolution, and what cutting-edge techniques are on the way?
Let’s start with responsive web design, a technique which figures out the best way to display content depending on the size of your browser window. Perfect for the era of tablets and smartphones.
A chap called Ethan Marcotte came up with the concept and brought it to the mainstream with his influential book. His live example of responsive design that accompanies the book remains one of the most impressive examples available — try dragging the window size from full-screen all the way down to mobile-width. Nifty stuff.
In a world with thousands of different devices, screen sizes and aspect ratios, this matters. Harry Roberts who runs csswizardry.com says responsive design has changed the way developers build websites. “It’s accessibility at its most basic; making sure anyone in any situation can access your content,” he said. “Responsive web design is relatively new, and people are still honing their approach, but it’s been quite the game changer.”
Here’s a couple of examples from Media Queries, a blog that documents the best of responsive design. The left image is how the same content will appear on a smartphone, with tablets in the middle and desktop on the right:
Image credit: Stephen Caver
Image credit: Sasquatch Festival
Another subtle but oh-so-pretty development is transitions, better known to you and me as animations.
A good showcase of simple transitions is by Dan Cederholm who literally wrote the book on CSS3 for Web Designers. Try the sample site and hover your cursor over images and links. Notice how menu items are softly highlighted, or how the newsletter signup box radiates a blue glow when you select it.
As a more striking example, recent experiments by Kesuke resulted in these live demos — try hovering over the buses on their site to see the whizzing animations in action.
CSS filters could reduce the need for web designers to photoshop images before posting them online. Sure, it might prompt a wave of sites that look like Instagram, but at least CSS allows designers to make up for it by just tweaking the code.
Developer Jenn Lukas is overjoyed at the potential for CSS filters. “They keep you out of image editors and let you tweak effects right with CSS. In this example, I examined the images for a site that did all the image production in Photoshop and recreated them in the browser.”
It’s not all about sepia-toned cats. Try this gallery by Code Player and hover over the images. Some transitions might look darn ugly for now, but designers will find a way to be tactful with these new effects — and some of them, particularly the ‘blur’ sample, look classy already.
These 2D effects might help make the web a prettier place, but newer techniques will take design literally into a new dimension. Examples of 3D CSS vary from the discreet to outlandish, but they’re all impressive.
Web developer Peter Gasston described the forthcoming wave of depth-inducing techniques at a conference last year:
“The web’s going to change quite a lot. It’s no longer going to be ‘documents’ that look flat and don’t do anything. A lot of people want the web to feel like the stuff they use in real life. Obviously you can go overkill with this … but the opportunity’s going to be there to create some amazing stuff.”
Be aware that the following links might not work in your browser, but if you’re running the latest Safari or Chrome you should be fine.
The best example — and I really mean the best website I have ever seen on the internet — is this spectacular page-shifting design by Steven Wittens. It combines CSS 3D with Javascript to make something so original that every other blog in the world should hang its head in shame:
As a more modest example, the Reeder homepage spins a 3D cube to reveal content:
This brilliant pop-up invite to Beercamp 2012 opens and folds while hovering in space like a real book:
And this demo concept of a first-person shooter by Keith Clark, rendered entirely in the browser, hints at some pant-wetting possibilities for the future of online gaming:
There’s one big problem with using brand-new CSS techniques: they only work on the latest browsers. If half your site visitors don’t even know how to run a software update, your designer needs to think twice about what they use.
“People are starting to realise that you can’t design for one version of the medium any more, and that there is no ‘normal’,” said Harry Roberts, but he’s positive, and thinks a variety of devices and browsers “lead to a much more considered approach to building websites.”
There are workarounds, of course. Developers talk of a need for features to ‘degrade gracefully’, which means that visitors running an old browser still see a functional site, sans effects.
Designer Sacha Grief says there’s no need to fret over giving every visitor the same effects. “Not every browser needs the same experience, and I firmly believe it’s better for a site to look awesome in [Safari and Chrome] and suck in Internet Explorer than be average everywhere,” he said. “So as long as the site is usable in every browser, I think it’s perfectly acceptable.”
But compatibility is constantly improving, and even Internet Explorer has caught up with the times. If anything, Microsoft’s inescapable ad campaign for IE 10 was nothing more than an expensive bid to bring its users out of the dark ages and push the whole internet forward a few steps. It might work.
Eventually the compatibility issues will fade away. The community of designers and developers, whose collaborative culture puts other industries to shame, will find new ways to define beautiful design, and anyone with a browser will be able to appreciate their efforts
It’s surprisingly easy to learn too — try starting with this free HTML & CSS course by Tutsplus and see where it takes you.
Thanks to Harry Roberts, Bruce Lawson, Jenn Lukas, Sacha Grief, Peter Gasston, Syd Lawrence, Chris Mead, and Adam Howard for their contributions to this article.
This week, we’re celebrating the many facets of modern design on Gizmodo UK, with a design theme week. Bookmark this page for all related stories, features, interviews and competitions, or contact us here with tips.






















The Future of Britain Is a Design Fiction
Gov.uk is The Future of Boring Government Web Sites
Crazy Courts Sentences Web Designer for Piracy Crimes
Lovely article. :3
There’s nothing I love more than seeing CSS3 transitions whizzing across my browser. The sooner shit like that’s adopted by web devs, the better! So when’s this redesign happening, Kat?
Totally agree, but as someone who works on webdesign (although only in the capacity of my companies site), its pretty hard to make it mainstream when people don not update their browsers to it works properly. Especially when you see from the analytics how many people are still using IE6.
Nobody uses IE6 anymore. Most sites don’t function properly on IE6 now.
IE6 is finally dead, and people have finally stopped expecting IE6 support from web developers by and large
Councils still use it on their internal systems running Win XP. So what if you’re designing a site for a city council run business centre or similar? (I’m speaking from experience here).
Responsive web design is a wonderful concept that I’d love our company to embrace. But I think if you put it up against some static but well presented photoshop piece which ISN’T responsive, it’s going to be less well received in a competitive presentation environment (unless the tender requests multi-device support or the client understands responsive design).
Regarding councils etc… 3 years ago, maybe. But it’s almost 2013. Nobody uses IE anymore, not even in the public sector.
You can no doubt find a specific need for it in a specific place, but by and large I think even a lot of clients that 2-3 years ago would have demanded IE6 support are now not expecting it, and it’s now basically well understood that if you want IE6 support it’s gonna cost you a fuckload extra money.
Sorry Kauzion but I’m a web designer for the NHS and I can gaurentee you that I.E 6.0 is still used massivly in the public sector.. I’m still using it now at work while I reply to this thread… Granted you are right it is dying and it should be long gone but I still have to design and update I.E 6.0 freidnly web sites on a daily basis….
I was deliberately speaking in absolutes incidentally. I know some people DO still use IE6. But seriously overall usage of IE6 is so damn low now that only stupid or really big clients would pay for the support of it for most UK sites.
Also corporate users can install Chrome frame on Windows XP.
There are ways to code around IE using responsive methods:
http://jonikorpi.com/leaving-old-IE-behind/
And IE6 is dead… basically.
http://www.ie6countdown.com/
Soon if you go to google, bing, yahoo, fackbook, youtube with ie6 you just get a message telling you to get a new browser and link.
The one problem is not so much the adoption of browsers, (at the start of the web back in the 1990s, websites often featured ‘Made for Mosaic or Netscape X.0′ banner or icons at the base of the home page, encouraging you to download the browser), the problem is that Apple and others make a nice sum from device / OS specific apps, and like solar energy is to the oil companies, html5 is a threat to that nice little earner, so it is sadly left as a showcase for talented designers and coders.
However, like solar energy, things will change for the better in due course, it just takes someone brave enough to do things differently, so to speak. Mozilla Boot to Gecko project for a start. A good reason to keep that Samsung Galaxy SII on hand…
I can’t wait for the day when all websites use the whole width of my 2560*1440 display. For example Gizmodo only takes up the middle third, so if it used all of it I’d only need to do a third of the amount of scrolling.
Long lines of text are incredibly hard to read, you lose the line you were on by the time your eyes scan back to the start of the next line.
This is why newspapers are traditionally done in narrower columns. It does largely depend on the site you are reading, full width will suit some more than others. But a traditional blog site like this, where you are reading single articles, the 960 width is fine.
Also you don’t need to have your browser maximised when you have a monitor that large. I use two monitors, I don’t stretch sites across them.
If the articles were stretched across the full width most probably wouldn’t be more than two lines anyway. However a much better solution would be a grid layout, or put the images beside the text.
My browser is always maximised, I would have it windowed and have multiple tabs showing at once but they’d all have to be different sizes and I have at least ten tabs open at once so it’s just more conveinient to switch between them.
I know its an article written for a fairly Tech savvy audience, but if you are going to write an article about CSS you might want to start with what CSS stands for?
Cascading Style Sheets. Yes it wouldn’t have been much effort for them to put it in parenthesis, but I would assume most people interested in this article would know what it means or would be willing to go through the effort of looking it up and perhaps reading some more about it.
To me, It seems clear that Flash is going to be slowly phased out, even if just for Online photo albums, interactive websites, Flash issnt needed when HTML5 can do it all without taking all the system resources, So why is it, Im being taught to use Flash in WebDev in Univerisity, when whithin the next few years, the mobile market growing and Flash being phased out…Noone will be making flash websites, bar the odd facebook game ect.
Flash still has a future, it’s just unlikely to be on the web (at least the standard model of the web). Our company (twentysix) still do a lot of flash for our clients, however most of it is now for internal training tools (which it is proving to be VERY useful for), also we have started making some mobile apps in flash and then converting them (don’t ask me the technical stuff behind it though, I don’t like flash, I’m a UX developer
yeh, so flash has never been open source & jobs has killed it for now by banning it from the iphone. but flash is a proper program-making-studio. kinda like microsofts Visual Studio, but not just about code. so one day (imo), when HTML5 & javascript can do what Flash can do now, someone will make something Flash-like for them
its the best dev environment i’ve ever seen. code + graphics
so get what you can from it. its still really useful for loads of things, there’s tonnes of books & tutorials on it, & most of all, actionscript is a ECMAScript (the same family as javascript)
This nexus 7 keeps telling me I don’t have the right plug in for something – is that flash? Or just a pain…
There’s one big problem with getting too excited about brand-new CSS techniques: far more than half of your site visitors won’t even notice, let alone appreciate, how sophisticated the hard work behind the scenes is. They’ll simply take it for granted, minds un-blown.
That’s the nature of the best tech though – it should be easy to use, and quickly becomes the norm. Humans, eh?
CSS is a dog. i can’t stand it. way too many workarounds needed for seemingly anything that isn’t straightforward. everything becomes a bl**dy mission
maybe the web is just a difficult medium (never quite knowing how the user is gonna be browsing ur site, the existence of internet explorer, etc). but working with flash was never this difficult
just thank f**k for jquery, templates, themes (drupal, wordpress, etc) & sites like sitepoint & csszengarden