Jump to content

Doesnt Appear in mobile

Go to solution Solved by tuanphan,

Recommended Posts

Posted

.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

  • Replies 1
  • Views 455
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted

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!)

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.