10 most used CSS Display Values🔥 Open this🧵

Shefali@Shefali__J
44 views
Nov 06, 2024
~2 min read
Advertisement
2
🎯display: block;
Elements with display property ‘block’ starts on a new line and take the entire width of its parent container.
You can set the width and height properties for such elements.
Default block-level elements examples include
Elements with display property ‘block’ starts on a new line and take the entire width of its parent container.
You can set the width and height properties for such elements.
Default block-level elements examples include
, -
,
- , ,
3
🎯display: inline;
If you set an element’s display property to ‘inline’ then it does not start on a new line and takes the width required by its content.
You cannot set the width and height properties for such elements.
Default inline elements examples include , , and
.
If you set an element’s display property to ‘inline’ then it does not start on a new line and takes the width required by its content.
You cannot set the width and height properties for such elements.
Default inline elements examples include , , and
10
🎯display: inherit;
If you set an element’s display property to ‘inherit’, then it will inherit the display value from its parent element.
Here,
If you set an element’s display property to ‘inherit’, then it will inherit the display value from its parent element.
Here,
12
You can read the complete article here👇
shefali.dev/css-display-va…
shefali.dev/css-display-va…
13
That's a wrap.
Thanks for checking out.
If you find this helpful, then consider:
❤️Like
✅Follow me @Shefali__J for more content like this.
🔁Repost the below quote👇
Thanks for checking out.
If you find this helpful, then consider:
❤️Like
✅Follow me @Shefali__J for more content like this.
🔁Repost the below quote👇









