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.

Tree menu overlap?

Featured Replies

Does anybody know how to make a tree menu overlap the content below it, rather than push it out the way when it expands?

 

I need a menu that appears onclick and disapears onclick but also overlaps all content below it.

 

Many thanks.

The menu needs to be taken out of the document flow. You can do this by using position: absolute; (most likely in conjunction with position: relative; on a parent element to contain it.

 

Not sure what you mean by a 'tree menu' though...

to do it on Click you need to use JavaScript.

 

I can write some code for you in jQuery if you want...

  • Author

Thanks for all the help!

 

If you take a look at www.cheaptrade.co.uk you can see the menu i currently have however iv been told in another post the javascript is to complicated to read. I used a menu builder to generate the code. If you could do something for me php_penguin your my new best friend :-).

 

With regards to you thomas im not sure how to position using absolute without the layout of the page going all out of place when the screen resolution is changed.

 

Thanks all!

The key is to assign position: relative; to a parent element. Then the absolutely positioned element will be relative to that parent instead of the very top left of the document.

 

I can post an example if you like.

  • Author

If you can post an example that would be great.

 

Thanks alot :-)

  • Author

Fantastic! Problem soved!

 

Thanks so much for your help its greatly appreciated.

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.