ogulcan

Customer
Hi.

When I edit the cookie card, there is a blank space at the bottom of the site.
I think this was done to prevent the copyright from being lost. But that's not my purpose, of course. I want to make a prettier cookie card.
How can I fix that ?

Ekran görüntüsü 2024-08-30 194940.png
 
Solution
I'd remove your CSS and try this out:

Code:
.u-bottomFixer {
    position: fixed;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
}

It needs a max-width on there for this to work. You can adjust to your liking.
This is really how XenForo handles it. It will do this on the default style as well to avoid scenarios of blocking content.

You can switch the div to be "fixed" rather than sticky. I think that would achieve your goal:
Add this to extra.less
Code:
.u-bottomFixer {
    position: fixed;
    right: 0;
}
 
Checking your site, it looks like you got it sorted. Correct?
I fixed it but I don't know if I did it right. Because it looks different on every screen.

Code:
.u-bottomFixer {
    position: fixed;
    left: 50%;
    margin-left: -350px;
}


@media screen and (max-width: 768px) {
    .u-bottomFixer {
    position: fixed;
    left: 50%;
    margin-left: -150px;
}
    }

.XenBase .notice.notice--cookie {
    background: #f0f0f0;
    max-width: 50rem;
    box-shadow: 0 .625em 1.875em rgba(0, 0, 2, 0.3);
    margin: 15px;
    border: 1px solid #d6d6d6;
    padding: 0.1rem;
    border-radius: 5px;
}
 
I'd remove your CSS and try this out:

Code:
.u-bottomFixer {
    position: fixed;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
}

It needs a max-width on there for this to work. You can adjust to your liking.
 
Solution

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back