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.

Javascript dropdown menu is behind embedded pdf object

Featured Replies

Hi,

 

I have a dropdown menu created in dreamweaver which works great. The only problem is I have just embedded a .pdf on a page and have just noticed that the menu drops down and goes behind / underneath the pdf. I know z-index is for this sort of thing but it doesn't work. The submenu box is set to 1020 bu the pdf object isn't absoloute / relative positioned so i dont think it can have a z-index + i'm not sure if they would work anyway as they're not nested together.

 

does anyone know how to modify the 'layers' of the page to fix this?

 

any help would be greatly appreciated.

 

Thanks,

Gareth

You could make the embedded pdf have a relative position without affecting anything. You could then apply a z-index to it.

If you could post a bit of css/html or a link to the page in question, it will be easier to debug.

  • Author

thanks for the reply,

 

yeah i tried just adding position-relative but it knocked way off. How would I get it to stay in the same spot? Also I thought the z-indexes would be seperated as they're not nested together.

 

Here are the links to the page and the CSS.

 

Page

 

main css

 

Thanks for your time

Sorry Gareth, not having a lot of luck. With the plugin installed, my browser keeps crashing. Not sure if it's a linux problem(I'm on Fedora) or a Firefox problem. If nobody else helps you out, I'll have a look tomorrow using windows.

  • Author

ok no problem, thanks a lot for your time.

 

don't trouble yourself too much. hopefully someone else who has adobe reader installed can help.

 

thanks :-)

  • 1 month later...

When editing in firefox (firebug), browser keeps crashing, I am using windows.

 

Pat

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.