• Marc

    (@standoutt)


    I have created a fixed navigation bar at the top of my page. All my content scrolls under the bar, but embedded YouTube videos scroll over it.

    I’ve used z-index:1 to make the navigation stay on top, is this wrong?

    See example page here: https://www.srizzil.com/blog/
    How can I fix this?

Viewing 1 replies (of 1 total)
  • Thread Starter Marc

    (@standoutt)

    I was suggested this solution on a forum:

    For the object element, use the param element, <param name=”wmode” value=”opaque”>. For the embed element, add the wmode attribute, <embed … wmode=”opaque”>

    This works well, but is not ideal to have to implement into every embedded video for posters. Is there no other solution, or even perhaps a way to have this automatically added to every video?

Viewing 1 replies (of 1 total)
  • The topic ‘YouTube embedded videos float over fixed navigation’ is closed to new replies.