Topic: Use file-Upload jQuery as mask overlay image
Eslam N.Ahmed asked 6 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="https://mdbcdn.b-cdn.net/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="https://mdbcdn.b-cdn.net/img/frame.png"
class="file_upload" data-height="600" />
</div>
<!-- <img class="card-img-top" src="https://mdbcdn.b-cdn.net/img/frame.png" alt="Card image cap"> -->
</div>
</div>
Marta Szymanska staff pro premium answered 6 years ago
Hi,
would you create a snippet showing the problem here: https://mdbootstrap.com/snippets/?
Best, Marta
Eslam N.Ahmed answered 6 years ago
thanks a lot marta i've done what i'm looking for thanks a lot
Bartłomiej Malanowski staff pro premium commented 6 years ago
Could you please share your solution with the others? I think this would help people with similar questions
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: 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