Suppose I write 2 tags div (without <br /> ). I will give them the background color and size (both 10x10) and as a result they will appear one under the other, and I need them to be together - how to do it?

  • How about the table? one line, 2 columns, in the columns of the diva ... - Vladyslav Matviienko

2 answers 2

Because of the div tag, the block property is equal to display. You either need to prescribe the "display: block-inline" style, or use SPAN instead of DIV.

    float http://htmlbook.ru/css/float