How to position one image on top of another image with HTML and CSS

1 Answer

0 votes
.container {
    position: relative;
}
.img-pos {
    position: absolute;
    top: 10%;
    left: 5%;
}
<div class="container ">
    <img src="http://www.coupondiscountblog.com/images/An-Easy-Guide-to-Programming-in-C-Second-Edition.jpg" />
    <img src="http://www.coupondiscountblog.com/images/C-Primer-Plus-5th-Edition.jpg" class="img-pos"/>
</div>

 



answered Sep 23, 2019 by avibootz

Related questions

2 answers 300 views
1 answer 231 views
1 answer 281 views
1 answer 666 views
2 answers 324 views
1 answer 310 views
...