Shopify themes, liquid, logos, and UX
Hi, I'd like to centre my newsletter box and the message above it centred on the desktop and mobile versions both. Currently is off the centre. In the mobile view it's completely off. I can't figure out which footer file and where do I need to make the correction to get this rectified.
website : www.slidein.co.in
Solved! Go to the solution
This is an accepted solution.
Try this one.
@media screen and (min-width: 750px) {
.footer-block__newsletter:not(:only-child) {
text-align: center;
margin-right: auto;
}
.footer-block__newsletter {
margin: 0;
}
.footer-block--newsletter.scroll-trigger.animate--slide-in {
width: 80%;
justify-self: end;
gap: 0;
}
form#ContactFooter {
justify-self: center;
}
}
.footer-block__newsletter {
margin-left: 0rem !important;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
This is an accepted solution.
Try this one.
@media screen and (min-width: 750px) {
.footer-block__newsletter:not(:only-child) {
text-align: center;
margin-right: auto;
}
.footer-block__newsletter {
margin: 0;
}
.footer-block--newsletter.scroll-trigger.animate--slide-in {
width: 80%;
justify-self: end;
gap: 0;
}
form#ContactFooter {
justify-self: center;
}
}
.footer-block__newsletter {
margin-left: 0rem !important;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thanks, this worked as the solution when I pasted it in the email-sign up banner css under assest folder. Thanks again for the help.
Hi, update, it was working fine in the mobile view section of customization but in real time on the website the alignment is still an issue. Desktop view has the problem solved but mobile view the problem still presists.
This is on my end.
What device your using?
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
@media screen and (min-width: 1024px){
.footer-block__newsletter h2.footer-block__heading {
text-align: center;
}
.footer-block__newsletter > form {
margin-inline: auto !important;
}
.footer-block__newsletter {
margin-left: 23rem !important;
}
}
Hi, thanks for your reply. I followed the steps but the centre alignment still isn't happening.
Please try this code
@media screen and (max-width: 768px){
.footer-block__newsletter {
margin-left: 0 !important;
}
}
@media screen and (min-width: 1024px){
.footer-block__newsletter h2.footer-block__heading {
text-align: center;
}
.footer-block__newsletter > form {
margin-inline: auto !important;
}
.footer-block__newsletter {
margin-left: 23rem !important;
}
}
Best,
Daisy
this is perfect. It has centre aligned it in both desktop and mobile view. Thanks a ton.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024