I have a page created by a database. It creates a DIV for each record (extremely simplified for the sake of the question). Each of these DIVs has a given width and floats to the left.
However, these DIVs do not have a given height, so sometimes the following happens, as shown in the figure. Is there a good way to prevent this, and is white space just “collapsing”?
Link to the site prototype. Here
I think this article will help you: http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
, , clear: left; .
clear: left;
, , " " , Brynwood Pak N .
, "Brynwood Pak N Ship" , , " " , "- ".
clear: left , , "" . , ; "Brynwood Pak N Ship" "Postal Shoppe", . , , , .
clear: left
clear: left div. display: inline-block , , ( , IE 6 ), , , .
display: inline-block
. , !
, CSS. , "display: inline-block" . , , .
"", , . , , , , . , 1, 2. ( ) 2, , , 1.
- , CSS ( , ). , Javascript. , , Javascript CSS-, Javascript , .
, . , , , , , , .
, flex-direction count-count:
.parent { column-count: 2; column-gap: 1.25rem; } .child-class { flex-direction: column; display: inline-block; width: 100%; }
, , css.
Source: https://habr.com/ru/post/1723820/More articles:Is there an add-on to view the source of CURRENT on an HTML page after activating AJAX components? - htmlSQL Query - получить последнюю версию - sqlAES 256 in CTR Mode - cryptographyCreating an article from email in mediawiki - emailCreating documentation for Ruby - ruby | fooobar.comjava security manager - javaВозврат соответствия из списка> - listHot deploy development changes with Eclipse, Tomcat, and Jetspeed - javaSending binary files to Erlang over TCP - erlangPython: analyzing complex statements at runtime - pythonAll Articles