2

I am using bootstrap and jquery UI dialog.

At the top of my page there is a element which gets a z-index of 1000.

When I open one of my jquery UI dialogs, the z-index of the outer div is 101.

I have set the modal property to true but the top of the dialog appears behind some of the content from the header. Note that for the actual div in my markup,

<div id="divPopup" style="display: none; z-index:5000;"></div>

Appears fine because of the 5000. However, the top bar of the dialog appears behind content.

Is there a way to change the z-index of the wrapper div?

andrewb
  • 2,995
  • 7
  • 54
  • 95

2 Answers2

4

You need to use pure css to set the dialog "on the top":

.ui-dialog { z-index: 1000 !important ;}

Full answer here

Community
  • 1
  • 1
jafojial
  • 121
  • 1
  • 5
1

You need to add a position to div for get z-index working.

<div id="divPopup" style="display: none;position:absolute, z-index:5000;"></div>
Mertcan Diken
  • 14,483
  • 2
  • 26
  • 33