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.

CSS - min-height 100% problem

Featured Replies

I'm working on this overlay div that is supposed to cover the whole site so that I can focus the user on a box in the middle without popping up an alert box or something.

 

So I tried a lot of things and for the moment it looks quiet good (except IE), even when u resize BUT not when u start to scroll (after resizing off course).

 

So if anyone has an idea or knows this problem, u could help me out.

 

I've put the css down here, and I've tried to upload the file but I don't if it is going to work that well (I'm just new here)

 

CSS:

<style type="text/css">

html

{

height:auto;

min-height:100%;

}

body

{

margin:0;

padding:0;

height:auto;

min-height:100%;

}

#container

{

background:#CCC;

width:800px;

height:100%;

margin:0 auto;

}

 

#bluebox

{

background:#039;

height:400px;

}

 

#redbox

{

background:#C00;

height:200px;

}

#overlay

{

position:absolute;

min-width:800px;

width:100%;

height:auto;

min-height:100%;

margin:0;

background:#000;

filter:alpha(opacity=50);

-moz-opacity:0.5;

-khtml-opacity: 0.5;

opacity: 0.5;

clear:both;

}

 

#posbox

{

position:absolute;

float:left;

width:50%;

height:50%;

margin:0 25%;

background:#F00;

visibility:hidden;

}

 

#whitebox

{

position:relative;

width:200px;

height:100px;

margin:0 auto;

background:#000;

visibility:visible;

margin-top:200px;

}

 

</style>

css_tricks.html

  • 2 weeks later...
  • Author

thx simanto

 

maybe ill found the solution there

 

archie

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.