Jump to content

change alignment of newsletter form in mobile view only

Recommended Posts

https://www.ana-uribe.com

password: hello

Hi!

I am trying to change the newsletter block alignment to "left" in mobile view only.

I don't know how to make the alignment "right" in desktop view and "left" in mobile view.

Can someone please help?

I tried using some custom CSS to make it all align left in mobile view, but I could only get the description text "Sign up for my newsletter" to align "left"

To do this I used:

Quote


@media screen and (max-width:640px) {
   .newsletter-form-header-description {
       float: left !important;    
  }
}

 

Anyway, I need the whole newsletter block to align left in mobile view.

Can anyone help?1615897467_ScreenShot2022-11-25at5_48_39pm.thumb.png.11af2bc1b06699eed89ec2b813a4135c.png

Much appreciated,

 

Dan

Link to comment
  • Replies 1
  • Views 404
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Looks solved, floating left on mobile:

image.thumb.png.f9a03f7ce50a08409787498a6b921b56.png

But you seem to have a strange line of CSS margin:left; you might want margin-left:0; margin-right:auto; instead.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

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.