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.

<div> inside a <div> won’t stretch the other <div> in height!

Featured Replies

Hello!

 

I’m having a small problem here.

 

I have a <div> inside a <div>. Let’s just call them DIV 1 and DIV 2.

 

DIV 1 is more like a “main box” to keep other DIVS in one place. One of them being DIV 2. DIV 2 is a float element.

 

The problem is, then DIV 2’s height increases, the one of DIV 1 doesn’t. Which means DIV 2 will kind of “overlap” DIV 1. DIV 1 doesn’t have any fixed height.

 

I’m pretty sure it has to do with the float element.

 

If anyone knows the solution… throw it over! :) I can also upload a picture and some code if needed.

  • Author

Fail from me… there was another DIV that I forgot, with fixed height. Problem solved. Too messy I guess, haha. Can’t we delete topics ourselves by the way?

 

Edit: Thanks I’ll take note of this code for other issues then :)

 

Edited by Revs

  • Author

Actually I had already found the solution, as stated above, one of the DIVs inside which it was had a fixed height! :) My mistake!!

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.