Answers for "one image position relative and other absolute"

CSS
1

one image position relative and other absolute

<div>
    <img src="http://placekitten.com/300/300">    
    <img src="http://placekitten.com/30/30" id="smallone">
</div>

/*CSS*/
div{
    float: left;
    position: relative;
}

img{
     vertical-align: bottom;   
}

#smallone{
    top: 0;
    left:0;
    position:absolute;   
}
Posted by: Guest on April-27-2022

Code answers related to "one image position relative and other absolute"

Browse Popular Code Answers by Language