How to write right-to-left text on a banner?

How to write right-to-left text on a banner?

Nelson
Written by NelsonLast update 2 months ago

Some languages like Arabic, Hebrew, Persian, or others use right-to-left writing system. CookieScript has plenty of customization options available, including right-to-left (RTL) writing.

Go to your CookieScript user account > Settings > Colors, where you will find the CUSTOM CSS STYLES box. It allows users to add custom CSS styling to the existing styles of cookie consent popup. 

Add this code to the CUSTOM CSS STYLES box:

#cookiescript_injected_fsd{
  direction: rtl;
}
#cookiescript_injected{
  direction: rtl;
  text-align: right;
}
#cookiescript_header{
  text-align: right;
}

Note: Your custom right-to-left writing style will be included in the generated source code of the cookie consent banner. Custom styles are included at the end of all styles, thus your custom style overwrites the default CookieScript styles. 


Did this answer your question?