← All tutorials

GoCareerGo Tutorials

CSS Tutorial

Selectors, box model, Flexbox, Grid, animation and responsive design.

background

Setting an element's background color, image and position.

Quick-reference summary — a full handcrafted walkthrough is coming soon for this topic.

Setting an element's background color, image and position.

  • Category: CSS Properties — part of the CSS Tutorial on GoCareerGo
  • Read the short summary above, then check the linked docs for full syntax/behaviour
  • Interview tip: be ready to explain "background" in one sentence, then back it up with a tiny example
/* background */
.example {
  /* see the property reference on MDN for full syntax */
}
Tip

Quick recall: "background" — setting an element's background color, image and position.