How to Create Embossed Text Effect using CSS ? Read Courses Improve Improve Improve Like Article Like Save Article Save Report issue Report The embossed text effect can be easily generated using HTML and CSS. We will use the CSS text-shadow property to get the desired output. HTML Code: In this section, we will create a basic structure of the body that holds text or heading. <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Embossed Text Effect</title> </head> <body> <div> <h2>GeeksforGeeks</h2> </div> </body> </html> CSS Code: In this section we will style the text. We will use the CSS text-shadow property to add shadow to the text and create the embossed effect. <style> body { margin: 0; padding: 0; font-family: serif; justify-content: center; align-items: center; display: flex; background-color: #65E73C; } div { content: ''; font-size: 3em; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } h2 { color: #65E73C; text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.5), 2px -2px 0 rgba(255, 255, 255, 0.9); } </style> Final Code: It is the combination of the above two code sections. <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Embossed Text Effect</title> <style> body { margin: 0; padding: 0; font-family: serif; justify-content: center; align-items: center; display: flex; background-color: #65E73C; } div { content: ''; font-size: 3em; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } h2 { color: #65E73C; text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.5), 2px -2px 0 rgba(255, 255, 255, 0.9); } </style> </head> <body> <div> <h2>GeeksforGeeks</h2> </div> </body> </html> Output: Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills! Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now! Looking for a place to share your ideas, learn, and connect? Our Community portal is just the spot! Come join us and see what all the buzz is about! Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore. Last Updated : 14 May, 2020 Like Article Save Article Previous How to Create an Email Newsletter ? Next jQuery | menu-aim plugin Share your thoughts in the comments Add Your Comment Please Login to comment...