CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS mask size Property

CSS mask-size Property

 

 

The mask-size property is used to define the size of the mask layer image.

 

Default Value:-

 

Its default value is auto.

 

Syntax:-

 

Its syntax is:- mask-image: auto | size | contain | cover | initial | inherit;

 

Further Explanation:-

 

Value Description
auto This is default
size Specifies the size of the mask image in px, em, etc.
contain Scales the mask image in a way that both its width and its height fit inside the container
cover Scales the mask image in a way that both its width and its height cover the container
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS