Creat Your profile using HTML & CSS with my Source code.
USING HTML & CSS CREAT YOUR PROFLE LIKE THIS.
HTML Source Code : -
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My profile</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav>
<ul>
<li>Home</li>
<li>About</li>
<li>Contect</li>
<li>Login</li>
</ul>
</nav>
</header>
<div class="main">
<div class="intro">
<div class="text">
<h1>Hi</h1>
<h1 class="name">I'am <span>Amar</span></h1>
<h1>Web Developer</h1>
<button>Submit</button>
</div>
</div>
<div class="image_box">
<div class="image">
<img src="amar.jpg">
</div>
</div>
</div>
</body>
</html>
CSS Source Code :-
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
header {
height: 65px;
display: flex;
align-items: center;
justify-content: end;
color: black;
font-weight: bold;
font-family: sans-serif;
}
header ul {
display: flex;
}
header ul li {
list-style-type: none;
margin: 20px;
}
header ul :nth-child(1){
text-decoration: underline;
}
header ul li:hover {
color: blue;
text-decoration: none;
cursor: pointer;
}
.main {
display: flex;
}
.main .intro {
width: 50%;
display: flex;
align-items: center;
justify-content: center;
color: black;
font-family: sans-serif;
}
.main .image_box{
width: 50%;
width: 50%;
height: 85vh;
overflow: hidden;
background-position: center center;
display: flex;
align-items: center;
justify-content: center;
}
.image img {
height: 400px;
border-radius: 300px 200px 350px 200px;
}
.text > :nth-child(1){
font-size: 100px;
}
.name {
font-size: 60px;
}
.name span {
color: blue;
}
.text > :nth-child(3){
font-size: 60px;
}
.text button {
padding: 8px 18px ;
background-color: blue ;
border: none;
font-weight: bold;
border-radius: 4px;
margin-top: 30px;
color: white;
cursor: pointer;
}

टिप्पणियाँ
एक टिप्पणी भेजें