Page 1 of 1

Wordpress Woocommerce Div Clear Rows

Posted: Fri Feb 09, 2018 3:15 am
by simonmlewis
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?

Re: Wordpress Woocommerce Div Clear Rows

Posted: Fri Feb 09, 2018 5:14 am
by Celauran
We'd need to see what the function does before we can really say one way or the other. Does it even need to be in the function, though? Couldn't you just do this with CSS?

Re: Wordpress Woocommerce Div Clear Rows

Posted: Fri Feb 09, 2018 5:16 am
by simonmlewis
How would you do it in CSS?

Re: Wordpress Woocommerce Div Clear Rows

Posted: Fri Feb 09, 2018 5:19 am
by Celauran