Styling
How to customize the overlay and iFrame of the Saypien JavaScript Library
Note: You can customize the appearance of the overlay and iFrame to better match the design of your website.
Customizing the Overlay
You can customize the overlay by adding additional CSS rules. Here are some examples:
Changing the Background Color
You can change the background color of the overlay to make it darker or lighter:
Adjusting the Overlay Position
You can adjust the position and size of the overlay:
Customizing the iFrame
You can also customize the iFrame by adding additional CSS rules. Here are some examples:
Changing the Border
You can customize the style of the iFrame in many ways. For example, you can add a border around the iFrame:
Adjusting the iFrame Size
You can adjust the size of the iFrame to better fit the content:
Customizing the Close Button
You can customize the close button to match your website’s design:
Changing the Close Button Style
You can change the appearance of the close button:
Example
Here is a complete example that combines the customization options mentioned above: