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.

Just a small problem

Featured Replies

So here we have it, a wrapper and 3 boxes, now i understand why its not working but is there a solution... because the wrapper has no defined height the 3 boxes inside without any content can not be height:100%, How can we fix this? Is it possible to fix without the use of javascript.

 

<style type="text/css">

html, body {

height:100%;

}

#wrapper {

float:left;

width:700px;

border:1px solid red;

}#box1 {

float:left;

width:200px;

border:1px solid blue;

height:100%;

}#box2 {

float:left;

width:200px;

border:1px solid orange;

height:100%;

}#box3 {

float:left;

width:200px;

border:1px solid purple;

height:100%;

}

 

 

 

</style>

 

<div id="wrapper">

<div id="box1">Hello, This text is used to exapand the box!<br/>Is it working?</div>

<div id="box2"></div>

<div id="box3"></div>

</div>

  • Author

Solved!

 

<style type="text/css">

html, body {

height:100%;

}

#wrapper {

float:left;

width:700px;

border:1px solid red;

display:table;

}#wrapper2 {

width:700px;

border:1px solid red;

display:table-row;

}#box1 {

width:200px;

border:1px solid blue;

height:100%;

display:table-cell;

}#box2 {

width:200px;

border:1px solid orange;

height:100%;

display:table-cell;

}#box3 {

width:200px;

border:1px solid purple;

height:100%;

display:table-cell;

}

 

 

 

</style>

 

<div id="wrapper">

<div id="wrapper2">

<div id="box1">Hello, This text is used to exapand the box!<br/>Is it working?</div>

<div id="box2"></div>

<div id="box3"></div>

</div>

</div>

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.