Home Blog Frontend Technologies

CSS display Property

Published:


Definition and Usage

The display property specifies the display behavior of an element.

Note: Every element on a web page is a rectangular box. The CSS display property determines how that rectangular box behaves.

Example

Use of some different display values:

p.ex1 {display: none;}
p.ex2 {display: inline;}
p.ex3 {display: block;}
p.ex4 {display: inline-block;}

more at https://www.w3schools.com/cssref/pr_class_display.asp

added on 10-Feb-2018
Comment