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.

Always hiding div until Event

Featured Replies

I need the orange box to be hidden behind the red box, regardless the size of the orange box, until the event is triggered. Neither display:hidden & overflow:hidden work as I hoped it would. Below is a jsFiddle example.

 

[Link]

display:hidden; is not valid CSS, try display:none;

I am on mobile now so I can't have a proper look at your fiddle, will have a look later.

Edited by teodora

  • Author

Right

 

display:hidden; is not valid CSS, try display:none;
I am on mobile now so I can't have a proper look at your fiddle, will have a look later.

That is what I meant to write, thanks for taking the time ! :)

  • Author

D4Y0 - Maybe I did something, maybe it's not reacting the same way on the actual site, as it is on JsFiddle. Would you mind to take a look at the actual site ? What is happening is the the div is not hiding behind, it is sliding up from the bottom of the browser, instead of behind the red box, as seen on the JsFiddle code.

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.