Why change size to class?  This stops it working as the enclosing div then doesn't have the class.  Should be added below too.