ScanSkill

height

The height property defines the height of an element. The height of an element does not include padding, borders, and margins.

Syntax

height: value | auto;

Example

.mydiv{
	height: 50px;
	border:1px solid red;
}
height

Property Values

value: sets the provided value as the height of an element.

auto: automatically sets the height to display the element’s content.