Member-only story

HTML Gradients with CSS — Colorful Slippery Slope

Ghost Together
3 min readMar 1, 2018

--

You can Follow me on Twitter to get tutorials, JavaScript tips, etc.

I mean Cascading Style Sheets. Because seriously… how many times since the 90’s do we need to hear that phrase? To add gradients to your HTML elements you must use CSS properties: linear-gradient and radial-gradient.

Grab your copy of CSS Visual Dictionary incl. diagrams of all CSS properties.

To get a good idea of how flex works try flex layout editor on this page.

In this quick intuitive CSS gradients tutorial we’ll discover how to create pretty much every type of a gradient you can imagine.

CSS gradients come in different flavors:

CSS / HTML Gradients come in different flavors.

You can create vertical (default,) horizontal, slanted, rotated, circular and repetitive (pattern) gradients.

To demo gradients we will use this specimen. The HTML <div> element:

--

--

Ghost Together
Ghost Together

Written by Ghost Together

Ghost Together @ https://semicolon.dev is an alternative to Twitter. Sign up to meet other makers of things.

Responses (1)