CSS Snippets

1. CodePen

In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. CodePen is an online community for testing and showcasing user-created HTML, CSS, and JavaScript code snippets. It functions as an online code editor and open-source learning environment, where developers can create code snippets, called “pens,” and test them.

Projects is the most powerful feature of CodePen. It’s a full-blown IDE right in the browser, with automatic preprocessing, drag and drops uploading, live previews, website deployment, and much more.



The code-based inspiration gallery Code My UI is the perfect curated resource to find CSS snippets.

Every post is hand-picked and organized by most of the most recent snippets found all over the web. You’ll find typography designs, custom layouts, button styles, and pretty much everything you’ll need for a sweet website.

At the top of the page, you can sort by category or by search term. This way you can whittle down the results to find exactly what you’re looking for.

A thought-out, user-friendly navigation is essential for a good accessibility of your website. With all of them being developed with the primary purpose to guide people through your site’s content, menus vary in their style and functionality. Below you can find a hand-picked selection of snippets that will make it far easier to enhance your site with a usable navigation element.


3. Bootsnipp.

Bootsnipp is an element gallery for web designers and web developers, anybody who is using Bootstrap will find this website essential in their craft.

Bootsnipp was created by Maks Surguy in September 2012, and is now operated by Dan’s Tools as a repository of useful HTML snippets for web developers using Bootstrap framework.

It has been completely rebuilt a year later and released in October 2013 as a Bootstrap playground with more capabilities.

Nobody could’ve guessed how quickly Twitter’s Bootstrap would’ve grown in just a few years. It’s easily the #1 frontend framework and with sites like Bootsnipp, you can save time by using pre-built code snippets.

Most Bootstrap code is repetitive so templates are very popular. With Bootsnipp you can browse hundreds of custom projects built on Bootstrap.

You can browse by tags or by the specific Bootstrap version ranging from v2.3 up to the newest v4.0.

If you want to create and share your own codes you can sign up for free and publish your Bootstrap snippets for the whole world. This site offers the BS dev community a huge value and it grows larger every day.



Codeply is another editor which covers a niche area of browser-based development: responsive design.

Mobile responsive websites were also completely irrelevant(or nonexistent) 10 years ago. Now it seems like every website must be responsive to accommodate the rising number of mobile devices with full Internet access. So how can a frontend developer learn to master these responsive techniques?

By launching a new Codeply editor you can choose from a number of responsive platforms like Bootstrap or Foundation. This offers a more nimble GUI for playing with such libraries to learn how they operate via internal classes and such.

Some devs prefer a wide choice of frameworks outside Bootstrap. That’s where a site like Codeply comes in handy.

This free resource lets you tinker with dozens of frontend frameworks like Foundation, Pure, Materialize, and others. You can build custom layouts right in your browser and save them as free snippets for the world to clone.

You can browse all snippets by framework or by tags, all of which make navigating the site a lot easier. It doesn’t have the simplest layout but you should find a lot of cool stuff in here.


5. CSSDeck

“CSSDeck is an online HTML, CSS, and Javascript sandbox with social and collaborative tools.”

You can use CSSDeck to make test cases and share with other people on IRC, forums, StackOverflow, etc. who help you solve your coding problems.

You can even code with multiple people in real-time in various modes. 

CSSDeck is the only online IDE that focuses primarily on CSS. Every snippet you find on the site uses HTML and CSS, most of which don’t really touch JavaScript.

This is the perfect resource for frontend devs who want non-JS solutions. Every code snippet includes the source code and you can make edits right in your browser.

It does not have the same volume as sites like CodePen but it’s still an excellent resource to check for free CSS snippets.

All the sites in this post are fantastic and they each offer a slightly different style of custom CSS snippets. But all of these resources will be around for a while and you can bet thousands of new snippets will be added in the years to come.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Shopping Cart