Have you added the code in Theme Options > Custom css or in style.css file of the child theme? Have you cleared cache?
Regards