html code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Facebook</title>
<link rel="stylesheet" href=" https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="facebook.css">
</head>
<body>
<div class="outerbox">
<div class="container text-center">
<div class="row">
<div class="col">
<div class="details">
<div class="facebooktop">
<h1> facebook</h1>
</div>
<p class="face-one" class="top">Facebook helps you connect and</p>
<p class="face-tow">Share with the people in your life</p>
</div>
</div>
<div class="col">
<div class="facebook">
<div class="box">
<div class="loginfrom">
<div class="user">
<input type="text" name="username">
<input type="password" name="password">
</div>
<div class="login">
<button type="submit">Log in</button>
</div>
<div class="pass">
<a href="#">Forgotten password ?</a>
</div>
<div class="lines">
<hr>
</div>
<div class="new">
<button type="submit">Create New account</button>
</div>
</div>
<p class="bottom"><b>create a page </b>for a celebirty,brand or business </p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
csss code
*{
margin: 0px;
padding: 0px;
border-radius: 0%;
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif ;
}
.outerbox{
width:924px;
height: 496px;
display: flex;
justify-content: center;
align-items: center;
margin-left: 150px;
}
.details{
margin-top:190px;
margin-right: 10px;
}
.facebooktop h1{
margin-right: 20px;
}
h1{
margin-left: -120px;
font-size: 60px;
font-weight: bold;
color:#1877F2;
}
.face-one{
margin-right: 15px;
font-size: 25px;
font-family: Arial, Helvetica, sans-serif;
}
.face-tow{
margin-right: 15px;
font-family: Arial, Helvetica, sans-serif;
margin-top: -25px;
font-size: 25px;
}
.top{
margin-top: 15px;
font-size: 4vw;
margin-bottom: 45px;
font-family: Arial, Helvetica, sans-serif;
}
.box{
width: 398px;
height: 496px;
align-items: center;
justify-content: center;
}
body{
background-color: #F0F2F5;
}
.facebook{
border-radius: 9px;
box-shadow: 0px 0px 1.5px black;
margin-left: 45px;
margin-right: -50px;
background-color:#FFFFFF;
width: 400px;
height: 350px
}
.user input {
margin-top: 15px;
width: 340px;
height: 45px;
border-radius: 5px;
}
.login button{
margin-top: 15px;
width: 340px;
height: 45px;
border-radius: 5px;
background-color: #1877F2;
color: white;
font-size: 25px;
}
.pass a{
text-decoration:none;
}
.pass{
margin-top: 15px;
}
.new button{
margin-top: 10px;
width: 190px;
height: 49px;
border-radius: 4px;
color: white;
background-color:#42B72A;
border: #FFFFFF;
}
.lines hr{
margin-left: 20px;
margin-right: 20px;
}
.bottom{
margin-top: 60px;
}
.facebook{
margin-top:130px ;
margin-right: -30px;
}
0 Comments