Mon - Sun 8.00 AM - 8.00 PM
[email protected]
Home
Articles
Our Courses
HTML 5
CSS
JavaScript
MySql
PHP
Laravel
Bootstrap
Our Tutorials
PHP
JavaScript
HTML
Laravel
MySQL
JQuery
CSS
Git
Bootstrap
Vue JS
Android
Ui Code Snippets
Chat Box
Range Slider
Radio Button
Select Box
Nav Bar
Other
Testimonial
Carousel
Logo
Loader
Lightbox
Login Form
Modals
OTP Verification Form
Popular Notes
HTML
CSS
JavaScript
SQL
Services
About
Contact Us
Ui Code
Snippets
WhatsApp Logo Using HTML and CSS
HTML
CSS
JS
Output
HTML
<!DOCTYPE html> <html> <head> <title>WhatsApp Logo Using HTML and CSS</title> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"> </head> <body> <div> <h1 class="main-heading">WhatsApp Logo Using HTML and CSS</h1> <div class="white-area-div whatsapp-common-div"> <div class="whatsapp-common-div"> <i class="fas fa-phone"></i> </div> </div> </div> </body> </html>
CSS
body { width: 100vw; height: 100vh; overflow: hidden; background: lightblue; } .main-heading { color: rgb(6, 2, 114); text-align: center; padding: 3rem; } .whatsapp-common-div{ width: 70px; height: 70px; border-radius: 35px; background: #3AC371; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); } .white-area-div{ width: 80px; height: 80px; border-radius: 40px; background-color: #fff; box-shadow: 2px 2px 3px 2px rgba(0,0,0,.3); } .white-area-div::before{ content: ""; top: 65px; left: -15px; border-width: 20px; border-style: solid; border-color: transparent #fff transparent transparent; position: absolute; transform: rotate(-50deg) rotateX(-55deg); } .white-area-div::after{ content: ""; top: 63px; left: -4px; border-width: 15px; border-style: solid; border-color: transparent #3AC371 transparent transparent; position: absolute; transform: rotate(-51deg) rotateX(-50deg); } .fas{ left: 17px; top: 18px; position: absolute; font-size: 35px; color: #fff; transform: rotate(90deg); }
JS
Output