Fundamentals of CSS
We want you to learn from the best. So who better to explain their CSS tactics than front end developer Mike Byrne? His handy tips will really help to structure your CSS.
Your website’s visitors care whether or not it loads quickly. Tom Gullen explains what the price of a slow site can be and shows you how to make yours render faster
Classes, classes, classes everywhere. What if we don’t need CSS classes at all? What if we stopped worrying about how many classes we’re using and what we should be calling them and just finished with them once and for all? Heydon Pickering investigates.
Stephen Shaw introduces a technique for perfect horizontal and vertical centering in CSS, at any width or height. The techniques works with percentage-based width/height, min-/max- width, images, position: fixed and even variable content heights.
In this tutorial we are going to be creating box shadow effects with just CSS. Below is an image created in photoshop of different box shadows effects. These used to be the only way of creating this effect but thanks to CSS3 we can now do all this with just CSS.
New CSS properties offer easy ways to lay out web pages. Thomas Lewis of Microsoft walks you through Grid Alignment, Flexible Box and Multi-column Layout.
In this tutorial, you’ll cover some of the CSS patterns used by web developers to tame the visual layout of form elements.
CSS3 offers so many possibilities to create cool rollovers on website menus. Dan Voyce explains how he created the effect on Graphite Design’s site.
As screens get smaller and more detailed, web pages will have to change to cope. Sean B Palmer examines the past, and the future, of CSS resolution independence
Incorporating images into your body text can often be a long and frustrating process. Take a look at this tutorial from Gustav Andersson, who has come up with techniques for all your text flow problems.
Front-end developer Stephanie (Sullivan) Rewis, owner of W3Conversions, takes you through a variety of uses for the CSS3 background-sized property.
Chris Coyier explores different ways to creating shadows behind triangles in CSS.
Print styles are often forgotten in the age of responsive web design. The good news is that a print style sheet is actually very easy to craft: you can follow a couple of simple CSS techniques to create a good experience for readers and show them that you’ve gone the extra mile to deliver a better user experience, says Christian Krammer.
With the advent of object-oriented CSS (OOCSS), it has become fashionable to decouple presentation semantics from document semantics. As this tutorial on Smashing Magazine explains, by leveraging the undesignated meanings of classes, it’s possible to manage one’s document and the appearance of one’s document as curiously separate concerns.
Create amazing typography
allows a perfect character count per line at any screen width. This tutorial on Smashing explains how to use it.
As newer CSS properties, such as text-shadow, gain traction, there’s no limit to what can be done with web type. Trent Walton from Paravel goes a step further by texturising it.
Vertical rhythm is really important for type-based design approaches. Web developer Matthew Wilcox shows you the basics.
The Letterpress effect is fast becoming one of the most popular tools in web design. Jump on the bandwagon with Chris Spooner as he shows you the ins and outs with CSS Text-Shadow.
Andreas Carlsson and Jaan Orvet discuss the way text is changing, thanks to the latest tablets and devices from the likes of Amazon and Apple. Here, they show you how to create and customise your own font file to keep up with the Jones.
If you didn’t know already, anaglyphs are those 3D images, offsetting two of the red, blue and green channels. If you’ve ever wanted to make your own, now is the time as Chris Spooner shows you how.
You’ve got your layout and images scaling, but you need to have your type following along as well. One size of type does not fit all line lengths or screen widths, says Val Head.
Get to grips with gradients
If you’re still scratching your head when it comes to CSS gradients, this tutorial from The Book of CSS3 by Peter Gasston provides simple examples that’ll have you acting like a pro in no time.
Tim Van Damme explains the CSS tips he used in a prominent website redesign to make it picture perfect.
Generate CSS sprites
While the theory behind CSS sprites is easy enough and its advantages are clear, they often prove to be too bothersome to implement, especially when time is short and deadlines are looming. Niels Matthijs shows how to get round the problem.
With new CSS features come opportunities to animate without the need for script. Sam Hampton-Smith demonstrates how to produce a retro gaming-inspired sprite.
An example of creating your own sprite image and using SpriteCow to help with the CSS from Chris Coyier.
Rollovers are a great thing. Principal evangelist for HTML5 and the open web at Mozilla Christian Heilmann explains how to enhance these beauties with 3D CSS rollover effects.
CSS3 offers so many possibilities to create cool rollovers on website menus. Dan Voyce explains how he created the effect on Graphite Design’s site
We’re big fans of parallax scrolling here at Creative Bloq – creating the illusion of 3D depth as you scroll is a simple and effective technique. Learn how to write shortest and simplest code to achieve the best from your parallax scrolling website.
Paul Hayes shows you how to create a carousel for your website that rotates from panel to panel.
Master CSS animations
New CSS3 modules enable cool effects, but what about browsers that don’t support them? Opera’s Chris Mills demonstrates a few examples – and styling alternatives via Modernizr.
From the basics of animation keyframes to expert animation tips that will save you many a headache, Estelle Weyl, web developer and author of HTML5 and CSS3 For the Real World, takes you on a tour of all you need to know to get up and running with CSS3 animations.
Belgian interface designer and CSS trickster Benjamin de Cock tells you how to create a clickable accordion with the power of CSS3, whilst also discussing the cons of the technique.
Dealing with images
Opera’s Chris Mills shows how object-fit and object-position in CSS3 can help to display media consistently throughout a website.
Keeping your HTML clean whilst still adding numerous separate images can be a bit of a headache. Freelance front-end designer Prisca Schmarsow tackles the issue of multiple background images in CSS3.
Solid design patterns are the basic building block for maintainable software applications. If you’ve ever participated in a technical interview, you’ve liked been asked about them. This tutorial by Tilo Mitra looks at a few patterns that you can start using today.
Responsive web design: the basics
In the field of web design and development, we’re quickly getting to the point of being unable to keep up with the endless new resolutions and devices, writes Kayla Knight. Should we just suffer the consequences of losing visitors from one device, for the benefit of gaining visitors from another? Or is there another option…?
These days, “one size fits all” is quickly becoming a dated concept. Luckily, with CSS media queries, we can now easily build responsive web designs that accomodate everything from your mobile phone to your massive desktop, as this video tutorial demonstrates.
Chris Coyier explains the very basics of what “responsive web design” has come to mean, with examples, related resources, relevant people, tips and tricks, and more.
Build a responsive website
Responsive design is much misunderstood. Jason Michael lays to rest some myths, and then walks us through building a simple responsive website.
Interested in responsive web design but not sure how to get started? Don’t fret, help is at hand! In a five-tutorial series, Paul Robert Lloyd talks you through the responsive design process, soup to nuts.
In the second part of this series, Paul Robert Lloyd tells us how to translate static page designs into adaptable, fluid websites. So let go of those pixels and learn to love proportions!
In the third part of this series, Paul Robert Lloyd looks at incorporating images and video into responsive layouts, and describes some of the problems in this area that still need solving.
In the penultimate part of this responsive design series, Paul Robert Lloyd explains how media queries work, and describes a device-agnostic approach to breakpoints.
In the final part of this responsive web design series, Paul Robert Lloyd explains how there is more to a responsive design than just flexible layouts, images and media queries.
In this exclusive excerpt from Responsive Web Design with HTML5 and CSS3, Ben Frain explores how to convert pixel-based designs to their proportional equivalents
The Responsive Grid System isn’t a framework or a boilerplate. But it does make creating responsive websites quick and easy. Graham Miller, its creator, explains how to use it.
The many ways to mobile
Zak Ruvalcaba and Anne Boehm explain how to use jQuery Mobile to create a mobile website.
We present an exclusive excerpt from jQuery Mobile Web Development Essentials, on the basics of theming and building and using a custom theme for your app
In an excerpt from the PhoneGap Beginner’s Guide, Nitobi/Adobe’s Andrew Lunny shows you how to set up and build simple and effective apps for BlackBerry, Android, and iOS.
Improving the mobile user experience
Scott Jehl shows you how to decrease browser functions to make more room on the screen for your designs.
Aaron Gustafson explains how to build a progressively-enhanced, CSS-based dropdown that works as part of a responsive design.
If you want your mobile app to stand out from the crowd, take a look at this tutorial from co-director of Bitmode Ltd, Richard Leggett. He’ll show you how to style and theme your app to make it go the distance.
Produce the perfect portfolio site
Mary Lou knows how to get the best out of your website menu. Whether it’s for an online portfolio or just for fun, take a look at this tutorial which will add two great features to your menu.
Create forms your users will love
So, you’re happy as Larry that you’ve finally converted your web design for mobile use. But what about those pesky forms your users just have to fill out? Jim Nelson shows you how to go above and beyond to make your users happy.
Create an image editor
Maciej Sopylo shows you how to create a full-blown picture editor that will be on the same level as most desktop applications.
This tutorial by Dan Wellman shows you how to rotate, resize, translate and even add subtle colour manipulation to your images.
We can all agree that decent content creation reigns supreme when it comes to attracting those unique visitors. Here, Louis Lazaris introduces you to the often overlooked concept of object orientated content using the OOCSS framework.
This tutorial covers the basics of CSS Regions, which allow us to flow content within various sections of the page.
CSS always seems to have a killer feature up its sleeve. Remember how media queries made responsive layouts possible and revolutionised front-end development? This tutorial talks about Flexbox, a module that’s causing a similar change in the way we lay out web pages.
Get started with Sass
There’s nothing to be afraid about in this brave new world of preprocessing. In this video Chris Coyier walks you through a simple project that uses Jade and Sass.
Handcrafting CSS from the start is a great move but more often than not it can become difficult to manage. Eugene Fedorenko explains how to overcome the hurdle and successfully redesign your style sheets.
Luke Shumard provides a crash-course in David DeSandro’s Masonry, a jQuery plug-in that’s ideal for both novice and intermediate web designers.
Site performance is about two things, writes Zack Grossbart: how fast the page loads, and how fast the code on it runs. Plenty of services make your website load faster, from minimisers to CDNs, but making it run faster is up to you. Grossbart explains how to go about it.
There is a lot of math in the visual things we do, writes Christian Heilmann, even if we don’t realise it. If you want to make something look natural and move naturally, you need to add a bit of physics and rounding to it.
JS Bin is one of the very first public paste bins with the output rendered live in your browser and available to share and edit with the completed output. It’s free to use all its features and it’s available on Github. Remy Sharp explains how to use it.
For some of us, animation can be a daunting prospect. It can however, improve your site to its fullest potential (and it looks cool too!). Zack Grossbart gives you his tips on how to develop a range of animations from the neat to the very, very messy.
Fantastic jQuery projects
Severin Klaus explains how Hinderling Volkart created an innovative method of scrolling through video for its 360 degree Langstrasse website. Impressed? Well, this tutorial will show you just how you can do it for your very own site.
Similar to a ‘hellobar’, Eric Hoffman shows you how to create a cute pop-up bar and use it to your advantage. It has only been tested in Chrome and Safari, so be aware it may not work in other browsers!
Countdown clocks can give your website the edge it needs to stand out. Martin Angelov walks you through the project.
Amazing tools to discover
Vavara Stepanova investigates BEM (‘Block Element Modifier’), a front-end modifier that’s created a new way of thinking when it comes to web interfaces.
Another free tool to make your design life that little bit easier. Gridpak comes from Erskine Design and enables you to quickly generate your own responsive grid. However, it can be a little tricky so here, Joshua Jackson gives you an extensive introduction.
Cool HTML5 projects
Ibon Tolosana and Iker Jamardo Zugaza show you how to get to grips with cross-platform HTML5 game development using Canvas.
A little music to the ears can often inject some much-needed personality into your website. Here, James Tyner shows you how to create your own MP3 player.
One little known feature of HTML5 is Scoped CSS. It’s an attribute for style blocks that may change the way we tackle certain styling challenges in the future, as Chris Coyier explains here.
Quizzes can often entice more user input, which begs the question: why haven’t you got one? Here, Siddharth gives you a quick preview into how to create your own mini quiz version.
More and more websites are in need of a little UI upgrade and radio buttons aren’t a bad way to go about it. Chris Coyier shows you how to develop your own grid of radio buttons in a few simple steps.