Hi I have number of responsive square block elements inside of container. Every block has next css:
.thumbWrapper {
display: inline-block;
min-width: 64px;
max-width: 128px;
width: 23%;
margin: 2px;
position: relative;
z-index: 15;
}
Number of blocks for example 30. I put them in the container in one row, so if they not are placing in one row, part of them are moving into the next row and etc. My goal is to show to user no more then 2 rows of them. How can I do it? P.S. I could use overflow: hidden;
property for container, but I don't know exact height of container, because it responsive depends on content blocks.
Using just css, without JS
Example:
-----------------------
__ __ __ __
|_| |_| |_| |_|
__ __ __ __
|_| |_| |_| |_|
__ __ __
|_| |_| |_| <------------- This row should be hidden!
-----------------------