Jump to content

Banner Image not centred in background

Recommended Posts

Site URL: https://mango-cylinder-yeyd.squarespace.com/

Hi Everyone,

I've designing a new client site with a solid navigation at the top and a background banner image underneath.

I've noticed that the image position is not centred correctly in the banner height? Take a look at the Free Resources page and you can see that there is a geometric symbol that should sit in the centre vertically, but it's not.

I think that by default the banner images are set to fill the height including the navigation section and this is fine for most images, but when there is an important element that needs to be sat in the middle, it cant be changed?

Is there some code to fix this easily?

Many thanks in advance :0)

Link to comment
  • Replies 7
  • Views 487
  • Created
  • Last Reply
5 hours ago, jasonconway said:

Site URL: https://mango-cylinder-yeyd.squarespace.com/

Hi Everyone,

I've designing a new client site with a solid navigation at the top and a background banner image underneath.

I've noticed that the image position is not centred correctly in the banner height? Take a look at the Free Resources page and you can see that there is a geometric symbol that should sit in the centre vertically, but it's not.

I think that by default the banner images are set to fill the height including the navigation section and this is fine for most images, but when there is an important element that needs to be sat in the middle, it cant be changed?

Is there some code to fix this easily?

Many thanks in advance :0)

Could you share the site with password?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 2/26/2021 at 1:15 AM, jasonconway said:

Site URL: https://mango-cylinder-yeyd.squarespace.com/

Hi Everyone,

I've designing a new client site with a solid navigation at the top and a background banner image underneath.

I've noticed that the image position is not centred correctly in the banner height? Take a look at the Free Resources page and you can see that there is a geometric symbol that should sit in the centre vertically, but it's not.

I think that by default the banner images are set to fill the height including the navigation section and this is fine for most images, but when there is an important element that needs to be sat in the middle, it cant be changed?

Is there some code to fix this easily?

Many thanks in advance :0)

The url doesn't exist.

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
On 3/2/2021 at 8:33 PM, jasonconway said:

Hi Tuanphan,

URL agatapalmer.squarespace.com

the password is @gatapalmer

Try adding to Design > Custom CSS

/* REsources page - center banner image */
body#collection-6037be0cc7726751e3d5f881 article section:first-child .section-background img {
    object-position: 50% 50% !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
On 3/6/2021 at 2:29 PM, tuanphan said:

Try adding to Design > Custom CSS


/* REsources page - center banner image */
body#collection-6037be0cc7726751e3d5f881 article section:first-child .section-background img {
    object-position: 50% 50% !important;
}

 

Hi Tuanphan,

That didn't change anything sadly?

Link to comment
  • 2 weeks later...
On 3/12/2021 at 12:14 AM, jasonconway said:

Hi Tuanphan,

That didn't change anything sadly?

I see it changed here. You can adjust 50% 50%

Also you haven't changed SEO Title so the browser tab name still shows "General 1"

image.thumb.png.db37ebf8a4ae92818944435a84709c44.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
  • 4 weeks later...

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.