Here's a snippet of the code I'm working with:
This is the HTML code:
<div class="border">
<div id="i-choose">
<input type="file" name="file" id="file" class="inputfile">
<label for="file">Browse</label>
</div>
</div>
And here is the CSS code:
#i-choose {
float: left;
font-size: 17pt;
}
.inputfile {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;}
#i-choose label {
line-height: 0px;
font-size: 17pt;
margin-top: 12px;
height: auto;
color: #0096BD;
margin-left: 5px;
cursor: pointer;}
.border{
border:1px dashed grey;
overflow:hidden;
}
I'm trying to achieve an effect where an image can be uploaded within the div and then dragged and dropped.
For a clearer visual, I've included an image link below:
https://i.sstatic.net/GnzJu.png
If anyone has any insights on how to solve this issue, I would greatly appreciate it!
Thank you in advance!