Course Content
Introduction
Introduction to CSS course
0/1
CSS Syntax
0/1
CSS Selectors
0/1
CSS Unit of Measurements
CSS units are used to specify measurements for various properties such as length, width, margin, padding, font size, and more.
0/1
CSS Colors
CSS provides various ways to specify colors.
0/2
CSS Properties And Values
0/1
CSS Background
0/1
CSS Box Model
0/1
CSS Display
CSS display property is used to control how an element is displayed on the webpage.
0/3
Typography and Font Properties
0/1
CSS Display And Positioning
0/2
Responsive Design with CSS Media Queries
0/1
About Lesson

CSS Display:

The display property in CSS controls the type of box model used by an element. It specifies how the element should be displayed on the web page. CSS provides several display property values including:

  • Block: This value is used to display an element as a block-level element that takes up the entire width of its parent container. Block-level elements create a new line after the element.
  • Inline: This value is used to display an element as an inline-level element that does not create a new line after the element. Inline-level elements only take up as much width as necessary to display their contents.
  • Inline-block: This value is used to display an element as an inline-level block container. Inline-block elements behave like inline-level elements, but they can have a width, height, margin, and padding.
  • None: This value is used to hide an element and remove it from the layout of the web page.