Die meistgefragten Interviewfragen und Antworten sowie Online-Tests
Lernplattform fur Interviewvorbereitung, Online-Tests, Tutorials und Live-Ubungen

Baue deine Fahigkeiten mit fokussierten Lernpfaden, Probetests und interviewreifem Inhalt aus.

WithoutBook vereint themenbezogene Interviewfragen, Online-Ubungstests, Tutorials und Vergleichsleitfaden in einem responsiven Lernbereich.

Chapter 3

Colors, Backgrounds, Borders, Units, and Sizing Foundations

Build visual styling basics with color systems, size units, borders, backgrounds, and practical interface sizing decisions.

Inside this chapter

  1. Working with Color
  2. Background Styling
  3. Borders and Rounded Shapes
  4. Common CSS Units
  5. Width, Height, min and max Constraints
  6. Business Example

Series navigation

Study the chapters in order for the clearest path from CSS basics and styling foundations to advanced layout, responsive design, architecture, and maintainable interface systems. Use the navigation at the bottom to move smoothly through the full tutorial series.

Tutorial Home

Chapter 3

Working with Color

.button {
  background-color: #1f6feb;
  color: white;
}

CSS supports named colors, hex values, RGB, RGBA, HSL, and more. Students should learn color not only as decoration, but as part of hierarchy, state, contrast, and usability.

Chapter 3

Background Styling

.hero {
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
}

Backgrounds can use solid colors, gradients, images, and layered effects. They shape atmosphere and readability, especially on modern responsive pages.

Chapter 3

Borders and Rounded Shapes

.card {
  border: 1px solid #d0dbe7;
  border-radius: 16px;
}

Borders help define boundaries, group elements, and communicate component structure. Border radius can soften or sharpen the overall visual tone.

Chapter 3

Common CSS Units

  • px for fixed pixel-based sizing
  • % for relative sizing based on parent context
  • em and rem for scalable typography and spacing
  • vw and vh for viewport-relative measurements
Chapter 3

Width, Height, min and max Constraints

Strong layout design often relies on min-width, max-width, min-height, and related constraints so content remains readable and stable across screens.

Chapter 3

Business Example

A pricing card may need a clear border, strong contrast, consistent width, and background treatment that separates it from surrounding content. Small CSS decisions here strongly affect user perception and conversion behavior.

Copyright © 2026, WithoutBook.