Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103440
    Ojo Njoku
    Participant

    Hi everyone, please I’d like to know how i can change the position of the smart window. from the inspect element, am able to play with the position, but when i try to use my own value in my css file, it never gets applied.
    How can i change the default position?

    below is the css that i found on the inspect tool that allows me play with the position, but when i change the value, it never gets applied to the smart window.
    .smart-window:not([animation=none]) {
    top:600px!important;
    }

    .smart-window {
    top:600px!important;
    }

    also is there any way to make the modal open onclick instead of double clicking?

    • This topic was modified 1 year, 8 months ago by Ojo Njoku.
    #103456

    Hi,

    To change the position there are two ways.
    The first way is with CSS as shown here in the demo: codepen
    The second way is to use the move() method. Here is a link for that: moveMethod
    The method accepts the left and top positions.

    Also, we do not support opening the modal with a single header click. It will cause a problem with the drag.

     

    If you have any additional questions, do not hesitate to contact us!

     

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.