Home Forums Porto Template modal footer

This topic contains 1 reply, has 2 voices, and was last updated by  Support2 1 week, 1 day ago. This post has been viewed 41 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10029722

    rash
    Participant

    hi,

    would like to ask possibilities for listed queries:
    1.is it possible modal fit with screen size which if the modal is long, scrollbar will appear.
    2.is there a way to create static modal footer? related to above query, even the modal is long with scrollbar, footer will always visible

    tq


    #10029725

    Support2
    Keymaster

    Hello,

    1) The modals already has this behavior by default. If you get the examples codes here: http://preview.oklerthemes.com/porto/7.5.0/elements-modals.html and extrapolate the browser height by adding content on the modal, the modal will stay fixed and generates a scrollbar that controls only the modal.

    2) To do that will be necessary some custom code. Please follow the steps below:

    HTML:
    https://pastebin.com/raw/xuQ1gJqr

    Add in (css/custom.css):

    .custom-modal-body-scroll {
    	height: 93vh;
    }
    
    .custom-modal-body-scroll .modal-content {
    	height: 100%;
    }
    
    .custom-modal-body-scroll .modal-content .modal-body {
    	overflow-y: scroll;
    }

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)