Site logo

[Support request] Centering a div class

Home Forums Support [Support request] Centering a div class

Home Forums Support Centering a div class

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1748222
    Liran

    Hey,

    I have a chatbox inside one of my pages (link is in the private box). Is it possible to center it or even set the width? I cannot seem to come up with the CSS to do it.

    Thanks!

    #1748258
    David
    Staff
    Customer Support

    Hi there,

    you can try this CSS to force the form to fill the width of the content:

    #page .ja-gadget-virtual-assistant-inline.cleanslate .th-chat-window-inline .modal.size-450x400 {
      width: 100% !important;
    }

    Or instead use this CSS to center it in the page:

    #page .ja-gadget-virtual-assistant-inline.cleanslate .th-chat-window-inline .modal.size-450x400 {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    the !important statement is necessary as the plugins CSS is using them 🙁

    #1748311
    Liran

    That did it! Your support is amazing.

    #1748323
    David
    Staff
    Customer Support

    Glad to be of help!

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