Back to CSS

CSS Tutorial

Colors and Backgrounds

Use color and background styles to create clear visual design.

CSS can style text color, background color, gradients, images, and background positioning.

Good color choices improve readability, hierarchy, and brand identity.

css
.banner {
  color: #ffffff;
  background-color: #111827;
  background-image: linear-gradient(135deg, #111827, #2563eb);
}