Program:
index.html:
style.css:
Output:
index.html:
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="./style.css"> </head> <body> <div class="main-container"> <div class="flex-container"> <div class="menu home"> Home </div> <div class="menu about"> About </div> <div class="menu contact"> Contact </div> </div> <div class="image-container"> <img id="banner-image" src="./banner.jpg" /> <div class="banner-title"> Atharva Agrawal </div> <div class="banner-subtitle"> codingatharva.blogspot.com </div> </div> <div class="skills-heading"> <div class="skill-title"> My Skills </div> </div> <div class="skill-container"> <div class="skill1"> <div class="image"> <img id="image" src="https://cdn0.iconfinder.com/data/icons/social-network-7/50/22-256.png"> </div> <div id="skill-text" class="text"> HTML5 </div> </div> <div class="skill1"> <div class="image"> <img id="image" src="https://cdn3.iconfinder.com/data/icons/logos-and-brands-adobe/512/267_Python-256.png"> </div> <div id="skill-text" class="text"> Python </div> </div> <div class="skill1"> <div class="image"> <img id="image" src="https://cdn1.iconfinder.com/data/icons/logotypes/32/android-256.png"> </div> <div id="skill-text" class="text"> Android </div> </div> </div> <div class="portfolio-heading"> <div class="portfolio-title"> Previous Work </div> </div> <hr> <div class="portfolio-container"> <div class="portfolio-image"> <img id="portfolioimg" src="https://images.unsplash.com/photo-1515879218367-8466d910aaa4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80"> </div> <div class="portfolio-desc"> <div class="portfolio-name"> Finance App </div> <div class="portfolio-info"> This is a Finance App </div> </div> </div> <div class="portfolio-heading"> <div class="portfolio-title"> Client Testimonials </div> </div> <hr> <div class="testimonials"> <div class="client-name"> David Hawk </div> <div class="client-designation"> Founer: The Coder's Lab </div> <div class="client-testimonial"> "Atharva is excellent to work with!" </div> </div> </div> </body> </html>
style.css:
body{ font-family: Arial, Helvetica, sans-serif; } .main-container{ width: 100%; } .flex-container{ width: 100%; height: 100px; display: flex; background-color: black; } .menu{ color:white; min-width: 200px; font-size: 1.5em; text-align: center; padding-top: 40px; } .image-container{ display: flex; position: relative; text-align: center; } #banner-image{ width:100%; opacity: 0.8; } .banner-title{ position: absolute; top:30%; left: 35%; font-size: 5em; } .banner-subtitle{ position: absolute; top:40%; left: 42%; font-size: 2em; } .skill-container{ display: flex; width: 100%; justify-content: center; height: 500px; margin-top: 50px; flex-direction: row; margin-left: auto; } .skill1{ display: flex; width: 100%; margin-top: 40px; justify-content: center; } #image{ width: 150px; height: 150px; margin-right: 50px; } #skill-text{ color: black; margin-top: 30px; font-weight: bold; font-size: 2em; } .skills-heading{ display: flex; widows: 100%; height: 100px; color: black; background-color: white; font-size: 2em; margin-bottom: 150px; } .skill-title{ margin-left: 45%; margin-top: 155px; } .portfolio-heading{ display: flex; widows: 100%; height: 100px; margin-top: 50px; font-size: 2em; margin-bottom: 10px; } .portfolio-title{ margin-left: 45%; margin-top: 25px; } .portfolio-container{ display: flex; margin-left: 50px; margin-top: 100px; } #portfolioimg{ height: 400px; width: 300px; margin-left: 100px; } .portfolio-desc{ margin-left: 20px; } .portfolio-name{ font-size: 2em; margin-left: 100px; } .portfolio-info{ font-size: 1em; margin-left: 100px; color: gray; } hr{ width: 50%; align-self:center; } .testimonials{ display: flex; width: 100%; flex-direction: column; } .client-name{ margin-top: 100px; width: 100%; height: 50px; font-size: 2em; margin-left: 45% } .client-designation{ width: 100%; height: 50px; font-size: 1.5em; margin-left: 43%; color: gray; } .client-testimonial{ width: 100%; height: 50px; font-size: 1.5em; margin-left: 40%; font-style: italic; color: gray; }
Output: