Where did you add the code? Do you use a child theme? If you added custom css code in Theme Options > Custom css, please note that from the 4.0 update, all the custom styles come not like inline CSS but as styles from separate file – dynamic.css (to speed up the site loading). If you created child theme before 4.0 update, you need to create the dynamic.css file in royal-child theme folder and set permissions 777 for the file + add wp_enqueue_style( 'dynamic-css', get_stylesheet_directory_uri() . '/dynamic.css' ); in royal-child/functions.php file. Then go to Theme Options and re-save them.
Do not forget to clear cache before checking the result.
Thanks for the reply.
Do you use cache plugin? Please try to clear cache and check one more time if the code works from the Global Custom css.
Also, try to add the code in Additional CSS area – http://prntscr.com/jpdv19 via Customizer.