On Mouse Over Show X On Image
i want to show X mark on image , which is 24x24 size, for that i take li element and in element
Solution 2:
set the parent of you span to relative and the span to absolute this is all you have to know
li{
width:150px;
height:150px;
border:1px solid red;
margin:20px;
position:relative;
list-style:none;
}
span{
position:absolute;
top:-10px;
right:-10px;
display:none;
}
li:hover span{
display:block;
}
html
<li>
<span>x</span>
</li>
if you apply the rule on multiple elements it looks like this
Post a Comment for "On Mouse Over Show X On Image"