Hello, Nancy,
Thank you for the response.
You can use the mentioned code in case it gives you a better results, we just recommend adding a “selector” https://elementor.com/help/how-to-use-selector-in-the-custom-css-tab/ , as in example https://prnt.sc/CrdAuXAgZzTq
Kind Regards,
8theme team