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.

Div floating bottom of screen..

Featured Replies

Hi,

 

Is it possible to make div, which is floating bottom of the screen (not a page)? It should stay on bottom also when scrolling page.

 

That div would be place for few new comments in gallery...

 

It would be easy to make with frames but...

div#comments
{
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background: #fff;
border-top: 1px solid silver;
margin: 0;
padding: 1em;
}

 

Note that IE6 and older won't understand position fixed. So you need to find a workaround. I use IE expressions for that. http://www.gunlaug.no/contents/wd_additions_15.html

  • Author

Thanks :)

 

I have to sit down and read that "IE expressions" article one more time. I read it once and it didn't make me to see how to use this:

 

* html div#fixme-bottom {position: absolute;
top:expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop
+(documentElement.clientHeight-this.clientHeight) 
: document.body.scrollTop
+(document.body.clientHeight-this.clientHeight));}

 

:p

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.