In this question, we explore techniques to position an icon over an image or video, specifically in the bottom left corner. We'll examine two methods: using HTML and CSS, and utilizing Bootstrap 3 with Font Awesome.
To position an icon over an image or video using HTML and CSS, follow these steps:
<code class="html"><div class="container"> <img src="image.png" alt="Image"> <a href="icon.png" download="new-filename"> <i class="fas fa-download"></i> </a> </div></code>
<code class="css">.container { position: relative; } .container img { display: block; } .container .fa-download { position: absolute; bottom:0; left:0; }</code>
To position an icon over an image or video using Bootstrap 3 and Font Awesome, follow these steps:
<code class="html"><link href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" rel="stylesheet"/> <button class="btn btn-primary fa fa-download" type="button"></button></code>
<code class="css">.container { position: relative; } .container img { display: block; } .container .btn { position: absolute; bottom:0; left:0; }</code>
By implementing these methods, you can effectively position and display icons over images or videos to provide additional functionality or visual cues.
The above is the detailed content of How to Superimpose an Icon on an Image or Video in the Bottom Left Corner?. For more information, please follow other related articles on the PHP Chinese website!