marketmaker Posted July 12, 2023 Posted July 12, 2023 .header-nav:before { content: "25% Off Your First Clean--Use Code NEW25 at Checkout"; display: inline-block; white-space: nowrap; position: relative; top: -10px; left: 50%; transform: translateX(-50%); font-size: 45px; color: pink; } This appears on Desktop version, how do I make it appear on mobile? Website is royalcleanse.co
Solution tuanphan Posted July 15, 2023 Solution Posted July 15, 2023 Use this code for mobile .header-display-mobile .header-title-nav-wrapper:before { content: "25% Off Your First Clean--Use Code NEW25 at Checkout"; display: inline-block; font-size: 20px; color: pink; position: absolute; top: 0; text-align: center; background-color: rgba(255,172,172,.2); } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment