What is difference between display: inline-block , display:inline and display:block | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is difference between display: inline-block , display:inline and display:block

21st Sep 2018, 7:56 AM
avinash pai
avinash pai - avatar
3 Answers
+ 4
do you know html inline and block level tags every tag which react like itself+br tag at the end it is block level tag e.g div p h1-h6 ol, ul etc. inline tags are which shows inline and dont have br tag at the end like b ,i ,u ,a ,strong, img ,sub, etc. so in css you can cascade their properties you can make inline tag to block level tag and to block level tag to inline tag. or you can show the as block and but show inline .inline-block is like they are blocks but floating to left. visit https://medium.com/@DaphneWatson/css-display-properties-block-inline-and-inline-block-how-to-tell-the-difference-7d3a1e6e3051
21st Sep 2018, 8:14 AM
Amir Ahmad
Amir Ahmad - avatar
+ 3
Learn css display from the sample code by running this code https://code.sololearn.com/WUWrSMiCq8v6/?ref=app
21st Sep 2018, 8:38 AM
Calviղ
Calviղ - avatar
0
https://www.w3schools.com/cssref/pr_class_display.asp https://css-tricks.com/almanac/properties/d/display/
21st Sep 2018, 8:17 AM
Janning⭐
Janning⭐ - avatar