CSS Tricks Article - Create Tag Cloud with CSS and JavaScript

Just had my first article for CSS Tricks published, where I wrote about creating a tag cloud using some very simple CSS and JS.

CSS Tricks Tag Cloud article screenshot

TL;DR

Create your html, find how many articles each tag has, use JavaScript to set a font size scale based on the number of articles per tag with a minimum and maximum font size.

Head of over to CSS Tricks to read the full article.

Course: Build a LocalGov Drupal Website

Subscribe to get updates about the course (and perhaps a discount code before it is launched).

Filed Under:

  1. CSS Tricks
  2. CSS
  3. Frontend Development
  4. JavaScript