+ 2

Is "inline" the default/inherited setting for display?

I am looking at multiple <span> elements in my css lessons and nothing seems to change with or without inline

26th Feb 2017, 9:37 PM
Tuck
Tuck - avatar
3 odpowiedzi
+ 5
'display' default value depends on the default type of element: <span> is a inline level element, so yes, its default display property value is 'inline', while a <div> is a block level element and have a value of 'block'... Some elements have default display values more exotics, as <table> or list families...
26th Feb 2017, 9:49 PM
visph
visph - avatar
+ 1
For a SPAN element inline is in fact the default setting. For DIV or H1 it would be block. So basically it depends on element.
26th Feb 2017, 9:50 PM
spotbot2k
spotbot2k - avatar
+ 1
Thank you Visph! That made it all "click" for me!
26th Feb 2017, 9:51 PM
Tuck
Tuck - avatar