Home
CSS
CSS Style Images
Tryit: Place text in bottom-right corner of an image
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> .container { position: relative; } .bottomright { position: absolute; bottom: 8px; right: 12px; font-size: 20px; } img { width: 100%; height: auto; opacity: 0.5; } </style> </head> <body> <h2>Image Text</h2> <p>Add some text to an image in the bottom right corner:</p> <div class="container"> <img src="img_5terre.jpg" alt="Cinque Terre" width="600" height="400"> <div class="bottomright">Bottom Right Text</div> </div> </body> </html>