CSS Styling in Depth: Colors, Typography, and Visual Effects

Athena Ozanich
2 min readDec 19, 2024

Unleash Your Creativity and Design Stunning Webpages

Welcome back, CSS artists! You’ve mastered the basics of layout and targeting. Now it’s time to unleash your creativity and explore the vast world of CSS styling.

Think of CSS styling as your paintbrush and palette. You have an endless array of colors, fonts, and visual effects at your disposal to transform your webpages into masterpieces.

Working with Colors

CSS offers several ways to define colors:

  • Color Names: Use simple color names like “red,” “blue,” or “green.”
  • Hex Codes: Use hexadecimal codes like #FF0000 for red or #0000FF for blue.
  • RGB Values: Use RGB values like rgb(255, 0, 0) for red or rgb(0, 0, 255) for blue.
  • HSL Values: Use HSL (hue, saturation, lightness) values for more intuitive color adjustments.

Typography

Typography is the art of arranging type to make written language legible, readable, and appealing. CSS gives you fine-grained control over your text:

  • font-family: Choose from a wide variety of font families, like Arial, Helvetica, or Times New Roman.
  • font-size: Adjust the size of your text using units like pixels (px), ems (em), or percentages (%).
  • font-weight: Control the boldness of your text with values like normal, bold, or…

--

--

Athena Ozanich
Athena Ozanich

Written by Athena Ozanich

Front-End Developer by day, UI/UX designer by night! I’m an enigma with a desire to learn and teach others. Tech, Art, Philosophy and more

No responses yet