+ 7

Display issue "Inline and block" elements.

I've seen many people ask questions about this topic a lot, here's a simple explanation. for a block element, if you make the width 60px and height 60px it will maintain the shape of a 60 by 60 square but if it's inline, no shape will appear cos inline elements are not containers like block elements but once you add a line of text inside the inline element, it assumes the shape of that text. inline-block means outside=inline, inside=block. see... https://code.sololearn.com/W3dn9m4EdWic/?ref=app

17th Jul 2017, 6:08 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
3 odpowiedzi
24th Aug 2017, 3:18 AM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 5
Oh I see. Thanks!
21st Jul 2017, 5:05 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
This may make them understand more with sample codes and output. They can edit the sample codes too. https://code.sololearn.com/WUWrSMiCq8v6/?ref=app
10th Oct 2017, 8:45 AM
Calviղ
Calviղ - avatar