Home Forums Porto Template modal footer

This topic contains 2 replies, has 2 voices, and was last updated by  rash 1 month ago. This post has been viewed 136 times

Viewing 3 posts - 1 through 3 (of 3 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.


    #10030002

    rash
    Participant

    hi, tq for the feedback, will try it out


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