Friday, February 7, 2020

Porfolio

HTML Program:

<!DOCTYPE html> <html> <head> <title>My Portfolio</title> <link rel="stylesheet" type="text/css" href="webstyle.css"> </head> <body> <header> <section class="main"> <div class="logo"> <h1><blockquote>Company Logo</blockquote></h1> </div> <nav> <a href="webside.html" target='_blank'>Home</a> <a href="about.html">About Us</a> <a href="career.html">Contact Us</a> </nav> </section> <main> <div class="infon"> <h2>Hello</h2> <h1 id="header1">This is Pramod</h1> <h3>Web Developer</h3> <a href="#" class="btn1" target="_blank">Hire Me</a> <a href="#" class="btn2" target="_blank">Contact</a> </div> <div class="image"> <img src="Web_Developement.png" alt="Web_Developement" title="Web_Development"> </div> </main> <footer>This is &copy Copyright by Pramod;</footer> </header> </body> </html>

CSS Program:

*{ margin: 0; padding: 0; } header{ width: 100%; height: 600px; background-image: linear-gradient(to left, white 83%, pink 20%)} .main{ width: 100%; height: 20vh; background-color: lightblue; display: flex; justify-content: space-between; align-items: center; background-image: linear-gradient(to top, white 70%, pink 30%) } .logo{ width: 40%; color: red; text-shadow: 1px 2px pink; background-image: linear-gradient(#8d98e3 40%, #854fee 60%); box-sizing: border-box; } .logo h1{ text-transform: uppercase; animation: justanimate 2s linear infinite; animation-direction: alternate; } @keyframes justanimate{ from{ padding-left: 40px; } to{ padding-right: 40px; } } nav{ width: 60%; /*background-color: yellow;*/ display: flex; justify-content: space-around; } nav a{ text-decoration: none; text-transform: uppercase; color: black; font-weight: 900; font-size: 17px; position: relative; } nav a:first-child{ color: #4458dc; } nav a:before{ content: " "; position: absolute; top: 110%; left: 0; width: 0; height: 2px; border-bottom: 2px solid #4458dc; transition: all 0.4s linear; } nav a:hover:before{ width: 100%; } main{ height: 80vh; display: flex; justify-content: space-around; align-items: center; } .image{ border-radius: 100% 0% 100% 0% / 100% 0% 100% 1% ; background-color: pink; background: pink; } .image img{ max-width: 500px; height: auto; } .infon{ text-transform: uppercase; } .infon h2{ font-size: 40px; margin-bottom: 20px; position: relative; } .infon h2:after{ content: ""; width: 43px; height: 3px; position: absolute; top: 45% left: 25%; background-color: #000; } .infon h1{ margin-top: 20px; font-size: 70px; margin-bottom: 25px; } .infon h2{ margin-bottom: 35px; font-weight: 500; word-spacing: 5px; } .infon .btn1{ text-decoration: none; font-weight: 900; font-size: 15px; text-align: center; padding: 12px 25px; cursor: pointer; text-transform: uppercase; border-radius: 5px; display: inline-block; margin-right: 50px; color: pink; background-image: linear-gradient(to right, #4458dc 0%, #854fee 100%); border: double; box-shadow: 0 10px 30px rgba(118, 85, 225, .3); } .infon .btn2{ text-decoration: none; font-weight: 900; font-size: 15px; text-align: center; padding: 12px 25px; cursor: pointer; text-transform: uppercase; border-radius: 5px; display: inline-block; margin-right: 50px; color: pink; background-image: linear-gradient(to right, #4458dc 0%, #854fee 100%); border: double; box-shadow: 0 10px 30px rgba(118, 85, 225, .3); }

Output:


No comments:

Post a Comment

Simple Example of div tag in html with css

HTML and CSS Code : <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <m...