Need help in this pop under java script

@Tompots

Hi man well i only want to appear it only in upper right or left part / bottom right or left part

When i change the window size it appears in the middle of the page it will irritate my visitors for sure or maybe it should appear in the abck of the browser like other pop ups in tube sites?
 
Hi Scariot: css for popup :

Code:
 .popup-container {
       position:fixed;
       bottom: 0px;
       right:0px;
      
      }

set .popup-container to the class that your popup container is. When it's shown it will appear in the bottom right and stay there independent of scroll.
 
Last edited:
Hi Scariot: css for popup :

Code:
 .popup-container {
       position:fixed;
       bottom: 0px;
       right:0px;
      
      }

set .popup-container to the class that your popup container is. When it's shown it will appear in the bottom right and stay there independent of scroll.


Can you give me a sample script i'm not good at coding sorry
 
Yes.
Code:
 <div id='popup-container'> </div>

<style>
#popup-container {
   position:fixed;
   bottom: 0px;
   right:0px;
}

 </style>


style tags are used for CSS (which is responsible for style like the position of a popup container). If you script works but is not positioning the popup properly, add that that to it but replace the #popup-container with whatever the Id of the div is #id {}
 
Thanks man it works
 
Back
Top