Wordpress Woocommerce Div Clear Rows
Posted: Fri Feb 09, 2018 3:15 am
Hi
We have issues on our commerce sites where, if there are variables below the tiled images, showing for example:
Blue: in stock
Black: out of stock
Red: in stock
Green: in stock
and so on...
As we add more, it increases the height of the tiled DIV, and causes a tiling issue. We then have to set minimum heights on various screen sizes so it doesn't break.
If I were building this custom, I'd set, after every 3rd Div, a style: clear: both.
But how do you do this within a function in Wordpress?
We have issues on our commerce sites where, if there are variables below the tiled images, showing for example:
Blue: in stock
Black: out of stock
Red: in stock
Green: in stock
and so on...
As we add more, it increases the height of the tiled DIV, and causes a tiling issue. We then have to set minimum heights on various screen sizes so it doesn't break.
If I were building this custom, I'd set, after every 3rd Div, a style: clear: both.
But how do you do this within a function in Wordpress?