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.

How Do I Maintain A Constant Length Window On All Devices?

Featured Replies

Questions in the title really, but what im getting @ in my site is if you (using normal to large screen size) click the Tunes or Images Tab, youll notice the footer is way off the bottom of the screen. Where as in the other tabs, it stays @ the bottom (where it should be). I know this is due to the amount of content within the container. But is there a css trick or something more simplistic that Forces all tabs to display the same?. I mean the footer staying @ the bottom, where it bleeding well should be :-)?

 

Thanks

  • Author

{update} working on a solution. Will post soon.

Still looking for a solution. Did think may of found it @ stackoverflow But this only make the footer overlap & cover the content.

 

Advice welcome.

 

Thanks

 

[just thinking as i write this. 'overlap'!!!. isnt there some css code to stop overlap? memory thinks so :excl1: ]

It's late at night, so this may not be 100% correct, so bare with me…

 

First, in your CSS, add this;

 

html {
   
    min-height:100%

}
 

This will set the site to stretch to the bottom of the browser window.

 

Then, we need to specify a height for the footer, rather than keeping it at auto. Add this to the CSS that deals with your footer…

 

#footer {

     height:100px;
     position:absolute;
     bottom:0;
}
 

This just tells the browser "place the very bottom of this div at the very bottom of the browser window".

 

Those additions should stretch the page to the bottom of the page and force the footer to stay at the bottom of the browser viewport. Let me know if it works or not.

 

With regards to "overlap", you could be thinking of clear:both, which will force a div to sit beneath preceding divs that have been floated. Or, you could have been thinking of overflow:hidden, which prevent elements from extending outside their parent.

Edited by Paul Murray

  • Author

It's late at night, so this may not be 100% correct, so bare with me…

 

First, in your CSS, add this;

 

html {
   
    min-height:100%

}
 

This will set the site to stretch to the bottom of the browser window.

 

Then, we need to specify a height for the footer, rather than keeping it at auto. Add this to the CSS that deals with your footer…

 

#footer {

     height:100px;
     position:absolute;
     bottom:0;
}
 

This just tells the browser "place the very bottom of this div at the very bottom of the browser window".

 

Those additions should stretch the page to the bottom of the page and force the footer to stay at the bottom of the browser viewport. Let me know if it works or not.

 

With regards to "overlap", you could be thinking of clear:both, which will force a div to sit beneath preceding divs that have been floated. Or, you could have been thinking of overflow:hidden, which prevent elements from extending outside their parent.

Thanks Paul. It kind of works. Just causes the content in the section tabs to crash into the footer. the footer being transparent shows through, but not exactly what i envisaged. I think where getting there, but maybe need to find a way of keeping the section content 'Above' the footer.

 

Ill keep tinkering see where i can take it. Was going to look @ Matt James's idea

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.