Ok, I have this code:
//When you click on a link with class of poplight and the href starts with a
now, whenever a user clicks on an element that has a poplight class, then the above code is executed and it should display a div that has a popup_block class, but before that the ajax function is called, and I have no problem with that, but the centralism of this the div (which has the popup_block class) is lost, or it looks terribly vague, since you see that there is code that implements the centralism of this div, but it doesnβt, it only centers when I pointed to the css position or width and height of this div in css, but I don't want to do this, fun The jquery share should do this (see the code, it was implanted there). maybe there is a flaw in my code, or I just missed something, but whatever it is, I don't know. please help, I just want to focus this div on the phone. Thanks in advance.
-that div (has the popup_block class) is fixedly positioned, z-index: 99999 and does not display its defaut.
source share