+ 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
3 Antworten
+ 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...
+ 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.
+ 1
Thank you Visph! That made it all "click" for me!