Add box styling to class item