There are several divs inside the div block. How to place them in the center in one line? The number of divs is unknown in advance. They can be added or removed in the admin panel.

    1 answer 1

    Like this: http://jsfiddle.net/4jA4X/

    • one
      Another container can add white-space: nowrap; so that items will not be transferred to a new line if there is not enough space. Spaces that form between inline blocks, like between words, can be killed in the following ways: css-tricks.com/fighting-the-space-between-inline-block-elements It is very useful to read the article habrahabr.ru/post/117109 inline blocks. - Cypher
    • I understand that display: inline-block IE is not understood? Up to version 8. - Frontender
    • Not understood. My condolences if the customer requires support for this browser. - fori1ton
    • I join soblessings :) But the inline block can be made to work in ie6 ie7. Read the article on Habré in the previous comments. - Cypher
    • No, the customer does not require anything. This is what I do for myself. - Frontender