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.

100% height won't work.

Featured Replies

Good evening everyone,

 

So basically I've been fighting with this page and losing epically.

 

My problem is that the wrapper DIV has a background of red at the moment and as you can see it only goes as far as the content.

You can see from the code that I have given 100% heights to all object the wrapper is embedded in but I still can't seem to get the red background of the wrapper to go all the way to the bottom of the page.

 

Any help anyone can offer would be very much appriciated.

 

My page

#container should be red, not #wrapper and then you don't need min-height: 100%; in #wrapper.


#container
{                                        background-color: red;
	position: relative;
	min-height: 100%;
	margin-bottom:-57px;
}
#wrapper
{ 
margin: 0px auto 0px auto;
/*background-color: #262C2F;
background-image:url(Images/Design3.0/images/wrapperbg.jpg);
background-repeat:repeat-y;

*/
padding: 30px 55px 0px 55px;
   /*background-color: red;*/
width: 960px;
/*min-height:100%;*/
}

  • Author

Ahh, yeah I see your point.

I did it that way because the footer sits below the container. Is there no way to make the wrapper div behave?

  • Author

Has anyone else got any ideas? I'm still really struggling with this one.

I have had a few problems with this too when ive done projects for clients. I mostly tried to work around this and try and avoid it where possible because i couldn't get it to be cross browser compatible.

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.