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.

Fixed Float problem

Featured Replies

Hey guys,

 

You can see the problem at: Another tournament today! - Collossal Pixel – The Portfolio of Ali Hitch

 

On FireFox the element works as designed. However in Chrome and Safari there is a problem.

 

The element in question is <aside class="l-scroll">

 

The element is supposed to stay fixed a certain distance from the top of the page basically never moving from it's original position.

 

However, in Chorme and Safari, the element scrolls but when scrolling, moves itself to the middle of the page which is quite bizarre.

 

I am wanting to know why this is happening, and what the fix for it is?

 

If you need any more information please let me know.

 

Many Thanks,

Ali

  • Author

Problem fixed!

 

Just needed to add

 

right: 50%;
margin-right: 295px;

 

 

to the CSS of the .fixed element. I guess Chrome and Safari don't always take the same properties from the parent in this case.

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.