Jump to content

CSS to change appearance of #section on smaller screen sizes

Recommended Posts

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

I'm trying to do two things:

First, I'd like to get the section#featured-project (on the homepage) to appear the same on a large resolution monitor as on a 13-inch laptop -- meaning I'd like the featured image to bleed to the bottom edge of the section container, which it does not do on a laptop screen.

Second, I'd like to get the section#featured-project (on the homepage) to appear the same on tablet screens as on mobile screens -- meaning I'd like it to stack, which it does not do on a tablet screen.

I've tried multiple different sets of code in the design>CSS, but nothing seems to be working. I'm not sure what I should be targeting, a block, a page, a section, etc. I'd appreciate any help. Thanks.

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

Q1. You mean like this?

Add to Design > Custom CSS

/* featured */
section#featured-project>div {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

image.thumb.png.0be83e482efc9055eedae03c328e064d.png

Q2. Add to Design > Custom CSS

/* featured tablet mobile */
@media screen and (max-width:900px) {
div#page-60564f79ca24454a73152ec1 .span-12 .row {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}
div#page-60564f79ca24454a73152ec1 .span-12 .row .col {
    width: 100%;
}
}

image.thumb.png.4fedb3dd4cb50df286f699eba7ca4e23.png

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.