The CSS images module defines the types of images that can be used (the 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
image-orientationimage-renderingobject-fitobject-positionobject-view-box
The CSS images module also defines the image-resolution property. Currently, no browsers support this feature.
Functions
linear-gradient()radial-gradient()repeating-linear-gradient()repeating-radial-gradient()conic-gradient()repeating-conic-gradient()cross-fade()element()image-set()
The CSS images module also defines the image() function. Currently, no browsers support this feature.
Data types
gradientimage
Guides
- Presents a specific type of CSS images, gradients, and how to create and use these.
Implementing image sprites in CSS
- Describes the common technique grouping several images in one single document to save download requests and speed up the availability of a page.
- Introduces the properties that only apply to replaced elements.
- Learn about the
aspect-ratioproperty, discuss aspect ratios for replaced and non-replaced elements, and examine some common aspect ratio use cases.
- Learn about the
Using the CSS
object-view-boxproperty- Learn the CSS
object-view-boxproperty, including how to zoom in, zoom out, and pan across images.
- Learn the CSS
Related concepts
<url>url()<basic-shape-rect>
Specifications
See also
- CSS filter effects module
- CSS compositing and blending module
- CSS colors module
- CSS values and units module