Jump to content

stack footer in mobile

Recommended Posts

Site URL: https://www.cattlebranddesign.com/

I have made a landing page and a contact form. On the landing page  ( https://www.cattlebranddesign.com/ ) 
I have added this code to shrink the banner image to fit a mobile screen
@media screen and (max-width:767px) {
.homepage section:first-child {
    height: 30vh !important;
    min-height: unset !important;
}
}

The footer is fine when you go into my contact form.  ( https://www.cattlebranddesign.com/contact )
But it seems as though this code has messed up the footer on my landing page. 


It seems as though this is what has messed up my footer.  on this page  ( https://www.cattlebranddesign.com/ ) 
Any help appreciated

Edited by daybreakwest
new info
Link to comment
  • Replies 2
  • Views 207
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

section:first-child = first section on Main Content + first section on Footer

You should change it to

@media screen and (max-width:767px) {
.homepage article section:first-child {
    height: 30vh !important;
    min-height: unset !important;
}
}

(this code will target first section on Homepage Main Content Only)

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

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.