Selasa, 17 Maret 2020

CSS: Height and Width

CSS Height and Width are two properties that can be used to resize an HTML element's size of height and width.

Width can set the width of an element, and height can set the height of an element with their values are (ALPII) Auto, length, Percentage, Inherit and Internal.

The default values
The default values of property width is auto. The default values of property height is auto.

There are also max-width, max-height, min-width, and min-height properties. What are they?

These are to state that

max-width is state that the width can't over the max-width, the min-width stated that the width can't be lower than the min-width.

max-height is stated that the height can't over the max-height, the min-width stated that the width can't be lower or less than the min

Height will make an element to have height as stated in the value of property Height. Even the contain is still less than the height.

max-width is used to 

Tidak ada komentar:

Posting Komentar