Jump to content

Code for Mobile View

Go to solution Solved by tuanphan,

Recommended Posts

Site password: rsksite

Hey all - I am unfamiliar with how to code for mobile view. I currently have a banner with  images on rotation and a description text box. It looks great on desktop, but when I look in mobile view the text box is getting cut off.  Please review screenshot for reference. Here is the code I have used..

//Gallery Text//
.gallery-caption p{color: white!important}
.gallery-caption p {white-space:pre; text-align:center}
.gallery-caption {background: linear-gradient(to right, #2B3D58, #BD9060); opacity: .85!important}
.gallery-caption p{font-size:1.1rem!important}
.gallery-caption p:first-line {font-weight:bold}
.gallery-caption p{font-family:ITC Avant Garde Gothic Pro!important}
.gallery-caption {margin-top: -8%}
.gallery-caption.gallery-caption-fullscreen-slideshow {
    top: 100%;
    left: 70%;
    text-align: .2 % left;
    max-width: 30%;
}
//END GALLERY TEXT//
.gallery-fullscreen-slideshow {
  margin-bottom: 0px!important
}

Circle Forum Reference.jpg

Link to comment
  • Replies 4
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Add this code under your code to adjust it on mobile

@media screen and (max-width:767px) {
figcaption.gallery-caption.gallery-caption-fullscreen-slideshow {
    top: unset !important;
    bottom: 0px !important;
    max-width: 40% !important;
    right: 0 !important;
    left: unset !important;
}
}

 

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

Link to comment
  • 3 weeks later...

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.