Which CSS property is used to change the display type of an element from inline to block and vice versa?

  • display 
  • layout 
  • transform 
  • visibility 
The display CSS property determines the display style of an element. It can be set to values like block, inline, inline-block, none, among others. To switch an element between block and inline, you'd typically use the values block or inline for the display property. For instance, setting display: block; will make an element behave as a block-level element, and display: inline; will make it behave as an inline element. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *