Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Use file-Upload jQuery as mask overlay image

Eslam N.Ahmed free asked 5 years ago


Expected behavior I'd like to use jquery upload file as an overlay mask on top of my card image Actual behavior overlay upload file already on a card even when I set this card background to transparency somehow work but not perfectly fit

.card.card-body.view.file-upload.has-preview {
background: transparent;

}

Resources (screenshots, code snippets etc.)

                  <!-- Card image -->
              <div class="view view-cascade ">
                <img class="card-img-top" src="/img/Both-sides-plain.png" alt="Card image cap">
                <div class="mask">

                        <div class="file-upload-wrapper">


                        <input type="file" id="input-file-disable-remove" data-default-file="/img/frame.png"
                        class="file_upload"  data-height="600" />
                        </div>
                <!-- <img class="card-img-top" src="/img/frame.png" alt="Card image cap"> -->
                </div>
              </div>

Eslam N.Ahmed free answered 5 years ago


thanks a lot marta i've done what i'm looking for thanks a lot


Bartłomiej Malanowski staff commented 5 years ago

Could you please share your solution with the others? I think this would help people with similar questions


Marta Wierzbicka staff answered 5 years ago


Hi,

would you create a snippet showing the problem here: https://mdbootstrap.com/snippets/?

Best, Marta



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.7.5
  • Device: 15\" Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags