What is difference between display-inline and display-inline-block? tririd.com
The display property in CSS is very useful and commonly used property which contains many values. Our web page treats every HTML element as a box, and with the display property, we determine how these boxes will be shown, or whether to show/hide them.
displayproperty specifies the display behaviour (the type of rendering box) of an element.
displayproperty specifies the display behaviour
- display: none vs visibility: hidden
- display: block
- display: inline
- display: inline-block
This property is used to display an element as an inline element. The height and width properties are not affected on display: inline; property. It allows only left and right side of margins, not top and bottom. In simple words it has no line break before and after of its neighbour elements and it allows HTML next to it.
When Display: inline-block declaration shows both the characteristics of inline and block-level elements. The object can be placed side by side and also width & height properties can be set:
For more information about Tririd.
Call us @ 8980010210
Visit us @ http://www.tririd.com/