I have been attempting to create a CSS style for an image within a div, but it does not seem to be working correctly. Below is my sample code:
<div id="{{$index + 1}}" class="DeviceImages" droppable >
<p class="backgroundText">
{{$index + 1}}
</p>
<a class='imagedelete delete' href="#">
<span class="glyphicon glyphicon-remove-circle"></span>
</a>
<div
ng-if="slotIdVsFile[$index + 1]"
class="deviceimage"
id="{{slotIdVsFile[$index + 1].name}}"
draggable="true"
draggable
>
<img
ng-if="slotIdVsFile[$index + 1].fileType == 1"
src="{{slotIdVsFile[$index + 1].url}}"
class="hoverimages"
/>
<video
ng-if="slotIdVsFile[$index + 1].fileType == 2"
class="hoverimages ImageFiles"
controls
>
<source ng-src="{{slotIdVsFile[$index + 1].url}}" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
In this code, I am aiming for the delete element to be visible when hovering over the image inside the DeviceImages
container.
.DeviceImages div img:hover {
display:block;
}
However, the desired effect is not being achieved as expected.