Back to Content

CSS images

files/en-us/web/css/guides/images/index.md

latest2.9 KB
Original Source

The CSS images module defines the types of images that can be used (the {{cssxref("image")}} type, containing URLs, gradients and other types of images), how to resize them and how they, and other replaced content, interact with the different layout models.

Reference

Properties

  • {{CSSxRef("image-orientation")}}
  • {{CSSxRef("image-rendering")}}
  • {{CSSxRef("object-fit")}}
  • {{CSSxRef("object-position")}}
  • {{cssxref("object-view-box")}}

The CSS images module also defines the {{CSSxRef("image-resolution")}} property. Currently, no browsers support this feature.

Functions

  • {{CSSxRef("gradient/linear-gradient", "linear-gradient()")}}
  • {{CSSxRef("gradient/radial-gradient", "radial-gradient()")}}
  • {{CSSxRef("gradient/repeating-linear-gradient", "repeating-linear-gradient()")}}
  • {{CSSxRef("gradient/repeating-radial-gradient", "repeating-radial-gradient()")}}
  • {{CSSxRef("gradient/conic-gradient", "conic-gradient()")}}
  • {{CSSxRef("gradient/repeating-conic-gradient", "repeating-conic-gradient()")}}
  • {{cssxref("cross-fade()")}}
  • {{cssxref("element()")}}
  • {{CSSxRef("image/image-set", "image-set()")}}

The CSS images module also defines the {{CSSxRef("image/image", "image()")}} function. Currently, no browsers support this feature.

Data types

  • {{cssxref("gradient")}}
  • {{cssxref("image")}}

Guides

  • {{cssxref("url_value", "<url>")}}
  • {{cssxref("url_function", "url()")}}
  • <basic-shape-rect>

Specifications

{{Specifications}}

See also