Jump to content

Making an image align to the bottom of viewport

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

/* align image */
div#block-yui_3_17_2_1_1683567613948_42553 {
    position: fixed;
    bottom: 3vw;
    left: 4.5vw;
    width: 100%;
    max-width: 200px;
    z-index: 99999;
    height: 100px !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Hi @tuanphan –

Thank you so much. This code is in the correct direction, but it doesn't keep the image in the viewport at all sizes (especially in wide browser sizes). Do you know how that could be done?

 

Thanks,

C

Link to comment
On 5/17/2023 at 12:42 AM, colepg said:

Hi @tuanphan –

Thank you so much. This code is in the correct direction, but it doesn't keep the image in the viewport at all sizes (especially in wide browser sizes). Do you know how that could be done?

 

Thanks,

C

Which screen size do you see problem? We can use 2 code for this screen size - other screen sizes

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.