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.

Changing element from fixed to relative depending on content height?

Featured Replies

Hi all,

 

Hoping someone can please advise on a particular script or CSS technique.

 

I have a line of social icons that are positioned at the bottom of my website using the CSS attribute position: fixed. Now this works great, however it then overlaps some of the content if the browser window is quite short in height, or if content on certain pages is longer than others.

 

Has anyone encountered this issue before, where they want something to be fixed at the bottom of the window, but only when it's not intefering with any of the body content? Could someone please advise or suggest any scripts or CSS that can easily overcome this?

 

I'm hoping I don't have to manually set media queries for each page depending on the height of the content!

  • Author

Thanks marchena, I did wonder what the "keyword" term might be to find such scripts. I'll have a look into some of these. thanks.

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.