Does the float property affect inline elements differently than block elements?


#1

Question

Does the float property affect inline elements differently than block elements?

Answer

When using the float property on display: inline; elements, the display value will be computed to block instead (display: block;). This means that display: inline; and display: block; elements will behave the same way when a float property is added to the element.