My closet shelves were a bit deeper than these could accomadate.  Older wood shelves are deeper I used them anyway they will defenetlely stay in place.  I had to scratch my shelves slightly to get them on