Dynamic set products columns when resolution change, or,the number of products on one row Automatically adapt to resolution,

I use the 'float:left" style in css ,But with bad.

help me!