Why use a display: built-in unit?

The new attribute display:inline-blockseemed like a useful alternative to doing display:block+ float:left/right, but the strange interval / space behavior that it introduces seems to deny this convenience. (See here ). In addition, browser support is spotty and needs to be fixed, although this will obviously change.

Accordingly , Yahoo's user interface uses it heavily, but why? Is there a convincing argument for using an inline block?

+3
source share
3 answers

- . float, - . .

, , , . CSS, IE6 7!

+6

, . ( ). , , , , , , .

+4

IE , , , . ( ) , .

You also do not need to clean up the elements after this, but I think it compensates for the corrections of the inline block that you need to do.

+3
source

Source: https://habr.com/ru/post/1796113/


All Articles