GDPR Cookie Law JavaScript GDPR Consent Plugin Example

GDPR Cookie Law – JavaScript GDPR Cookie Consent Plugin example – Space between the cookie icon and description

For the best user experience on the demo site, the cookies are automatically deleted. This way you can always see the notification toolbar.
Space between the cookie icon and description
Example code
<link rel="stylesheet" href="http://your-domain.com/gdpr-cookie-law/css/gdpr-cookie-law.min.css">
<script src="http://your-domain.com/gdpr-cookie-law/js/gdpr-cookie-law.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function {
    var gdprCookieLaw = new GDPRCookieLaw({
        moreLinkHref: 'http://your-domain.com/privacy-policy',
        iconStatus: true,
        iconHorizontalSpace: '1em',
        iconVerticalSpace: '0.5em'
    });
    gdprCookieLaw.init();
});
</script>
Related options
Peoprty Possible Values Default Value Description
iconStatus true, false true Enable or disable the appearenace of the cookie icon. You have the option to appear or disappear the cookie icon in the pop-up.
iconHorizontalSpace e.g. '10px', '20px', '1em', etc. '1em' The horizontal space between the cookie icon and description.
iconVerticalSpace e.g. '10px', '20px', '1em', etc. '0.5em' The vertical space between the cookie icon and description.