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>>]
Saturday, May 22, 2021
Home
CSS
CSS for a Rectangle
CSS for a Rectangle
Sir Chogyal
-
<!DOCTYPE html> <html> <head> <style> .rect { height: 200px; width: 400px; background: #34ebcc; color: #eb34df; text-align: center; position: relative; margin-top: 20px; } h1 { position: absolute; left: 50%; transform: translate(-50%, 150%); } </style> </head> <body> <div align="center"> <div class="rect"> <h2>Rectangle</h2> </div> </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