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.

Fill display height by div

Featured Replies

How can I fill display height using one div ? I've got static width of 800px and I need to set height of div to be from top to bottom and avoid of scrolling on smaller resolutions . This condition I need when div content is empty . If there is a lot of text or any other content and filling all div it should automatically extend div and then should be possibility of scrolling . I hope you understand what I mean , simply I need something like div{min-height:100%; } and if needed automaticaly extend the div .

 

I want it like preventing of webpage end is in middle of screen on some resolutions and on other it's on a bottom . Simple example is web what I'm doing now

http://www.new.pizzamako.sk

I think what you need to do is as well as setting the height of the DIV to 100%, you need to set it's container element to 100% height. This fiddle shows a simple example: http://jsfiddle.net/LyndseyB/3c2XM/

 

If that's not what you mean, my apologies :p Let me know if that helps :)

  • Author

I think what you need to do is as well as setting the height of the DIV to 100%, you need to set it's container element to 100% height. This fiddle shows a simple example: http://jsfiddle.net/LyndseyB/3c2XM/

 

If that's not what you mean, my apologies :p Let me know if that helps :)

I've found out when

 

<!DOCTYPE HTML>

specified on begining of the html5 document height value stated in % it's not working , anyone known why ? and how to overcome this ?

Edited by NiBi18

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.