On the mobile footer, arrange the two text items “policy” and “info” in a horizontal layout.
web: www.bmcarcover.com
A user seeks to display two footer text items (“policy” and “info”) horizontally on mobile devices for their website bmcarcover.com.
Solutions Provided:
Two community members offered CSS-based approaches:
First solution: Targets .footer-block__details-content.rte p elements, using display: inline with a pipe separator (" | ") between items via CSS ::after pseudo-element.
Second solution: Provides two CSS variants depending on footer structure:
.mobile-footer-row with centered alignment and gap spacing.footer__links with !important flags to override existing stylesBoth solutions use @media screen and (max-width: 768px) or (max-width: 767px) to target mobile viewports only. The code snippets should be added to the theme’s CSS file.
Status: Multiple working solutions provided; awaiting implementation feedback from the original poster.
On the mobile footer, arrange the two text items “policy” and “info” in a horizontal layout.
web: www.bmcarcover.com
Please add the following code at the bottom of your css file
@media screen and (max-width: 768px) {
.footer-block__details-content.rte p {
display: inline;
margin-right: 6px;
}
.footer-block__details-content.rte p:not(:last-child)::after {
content: " | ";
}
}
Hope this works!
Hi,
Hope this will help
CSS example
/* Put this in your theme CSS file (assets/...css) */
@media screen and (max-width: 767px) {
.mobile-footer-row {
display: flex; /* put children in a row */
flex-direction: row; /* horizontal */
justify-content: center; /* center them horizontally */
align-items: center; /* center vertically */
gap: 12px; /* space between links */
padding: 6px 0;
}
.mobile-footer-row a {
display: inline-block;
padding: 6px 8px;
font-size: 14px; /* adjust size if needed */
text-decoration: none;
}
}
CSS example
@media screen and (max-width: 767px) {
.footer .footer__links {
display: flex !important;
gap: 12px;
justify-content: center;
align-items: center;
}
.footer .footer__links li {
display: inline-block !important;
margin: 0 !important;
width: auto !important;
}
}