Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sticky image on page as link

Featured Replies

I would like to have an image on my page that sticks in the same position - even if the page is scrolled.

 

I know this is technically easily possible in CSS, but I can't seem to manage to get it to serve as a link. I'm looking for something similar to that held on: itportal.com.

 

I've noticed that there's a Javascript file doing this for them, and after a long while searching on the internet (probably using the wrong search terms...) I cannot find anything that may be helpful to me trying to create my own.

 

Can anybody offer me any advice, or point me in the right direction of a few tutorials? My Javascript knowledge is very limited - so please keep this in mind.

 

Many thanks

No need for javascript, just plain old CSS.

 

Set the position to fixed then use top, bottom, left and right to set where you want it.

 

#feedback{
position: fixed;
top: 40%;
right: 0px;
}

  • Author
No need for javascript, just plain old CSS.

 

Set the position to fixed then use top, bottom, left and right to set where you want it.

 

#feedback{
position: fixed;
top: 40%;
right: 0px;
}

 

So, this really is as simple as adding a DIV and using this code to fix it at one place??

 

Thank you - I will try this in the morning.

  • Author
No need for javascript, just plain old CSS.

 

Set the position to fixed then use top, bottom, left and right to set where you want it.

 

#feedback{
position: fixed;
top: 40%;
right: 0px;
}

 

Thank you so much. I just tested it and it's exactly what I wanted. You saved me an age searching!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.