BREAKING NEWS
བདེ་ཅན་སྨོན་ལམ་བསྡུས་པ།།
Launching a Specific Application without a UAC (User Account Control) Prompt
དུས་དེ་རིང་བཀྲ་ཤིས་ལྷ་རྒྱལ་ལོ།
Hide all the blog posts from the homepage | Hide all the widgets from all the blog posts
CSS for a Trapezoid/Trapezium
CSS for a Rectangle
Full forms of Technical Terms Used in Programming
What is i tag and b tag
CSS For Bold and Italic texts
Write texts on an image in html
Home
Technical Support
Blogger Tutorials
Earn Money
JavaScript
Subscribe Author On YouTube [Click Here>>]
Wednesday, May 12, 2021
Home
CSS
Write texts on an image in html
Write texts on an image in html
Sir Chogyal
-
<!DOCTYPE html> <html> <head> <style> .text-image { margin: 5%; position: relative; color: #03fc5a; } img { width: 100%; max-width: 100%; height: auto; min-height: 100%; } .top-left { position: absolute; top: 5%; left: 5%; } .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .bottom-left { position: absolute; bottom: 5%; left: 5%; } .top-right { position: absolute; top: 5%; right: 5%; } .bottom-right { position: absolute; bottom: 5%; right: 5%; } </style> </head> <body> <div class="text-image"> <a href="https://v815.blogspot.com" target="_blank"><img src="https://i.ytimg.com/vi/GOhcAuQbGJE/maxresdefault.jpg"/></a> <p1 class="top-left">This is our top left text.</p1> <p1 class="center">This is our center text.</p1> <p1 class="bottom-left">This is our bottom left text.</p1> <p1 class="top-right">This is our top right text.</p1> <p1 class="bottom-right">This is our bottom right text.</p1> </div> </body> </html>
Copy code snippet
You Might Also Like
CSS for a Trapezoid/Trapezium
May 22, 2021
-
Sir Chogyal
CSS for a Rectangle
May 22, 2021
-
Sir Chogyal
CSS For Bold and Italic texts
May 14, 2021
-
Sir Chogyal
Write texts on an image in html
May 12, 2021
-
Sir Chogyal
Hover & Hover Link in HTML
May 10, 2021
-
Sir Chogyal
CSS for an Oval Shape
May 07, 2021
-
Sir Chogyal
« PREV
NEXT »
No comments
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
Subscribe by Email
|
YouTube
|
Facebook
|
Instagram
|
Twitter
Learning JavaScript Quickly
Subscribe by Email
|
YouTube
|
Facebook
|
Instagram
|
Twitter
No comments
Post a Comment