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.

Height of div

Featured Replies

Dear all...

i dont want a fixed height for the div it should vary according to d contents....

i have multiple div inside the outer div....

still the height of outer div doesnt expand how to fix this problem....

i have tried giving height to be auto also 100% both dint work anything else....

If your inner divs are all floated, the background of the outer div will not extend its background down to the bottom of the nested floated divs. You need to add overflow: hidden; to the style of the outer div as item 2d here:-

http://www.wickham43.net/firefoxbackground.php

Item 2b is an alternative.

min-height is OK, except that it doesn't work in IE6. The other methods in the posts above would probably be used in preference to min-height, although more and more developers are now ignoring IE6.

 

If your target viewers are likely to be world-wide, like Africa where old computers are recycled, you should code for IE6 but perhaps not for developed country viewers.

  • Author

thanks guys for everyone,,,

Ash solution worked for me.....

i dint check it for ie6 mate as tats not d requirement for me...

im learning a lot from this site thanks again :)

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.