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 that fits whole page

Featured Replies

I have a div that I use as a transparent background when a lightbox appears. However how can I get the div to fill the whole screen even when the user scrolls? At the moment I have the width was 100% and the height as 700%. This fills the whole screen but it changes depending on the screen resolution etc. Is there a way I can make sure the the div will cover the whole page regards of the users settings?

 

Thanks for any help.

try...

 

This XHTML

 

<div class="fullscreen">Content please</div>

 

with this CSS...

 

<style type="text/css">

body{ height:100% }

div.fullscreen{

display:block;

position:absolute;

top:0;

left:0;

width:100%;

height:100%;

}

 

</style>

  • Author

Thanks for your help. This fills the whole screen but then as soon as I scroll it doesn't fit the screen. Maybe I need to use jquery or something. I'm not sure.

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.