My first website
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shailesh Fitness</title>
<link rel="stylesheet" href="css/style.css">
</head>
<!--
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2&display=swap" rel="stylesheet"> -->
<style>
/* CSS Reseat */
body {
font-family: 'Baloo Bhaina 2', cursive;
margin: 0px;
padding: 0px;
background: url('fitness.jpg');
color:black;
}
.left {
position: absolute;
left: 34px;
top: 10px;
display: inline-block;
/* border: 2px solid red; */
}
.left img{
width: 120px;
}
.left div{
text-align: center;
}
.mid {
display: block;
width: 50%;
margin: 20px auto;
/* border: 2px solid red; */
}
.right {
position: absolute;
right: 34px;
top: 20px;
display: inline-block;
/* border: 2px solid green; */
}
.navbar{
display: inline-block;
}
.navbar li{
color: white;
display: inline-block;
font-size: 15px;
}
.navbar li a{
color:black;
text-decoration: none;
padding: 34px 23px;
}
.navbar li a:hover, .navbar li a.active{
text-decoration: underline;
color: gray;
}
.btn{
margin: 0px 9px;
color: white;
background-color: black;
padding: 4px 14px;
border: 2px solid gray;
border-radius: 10px;
font-size: 10px;
cursor: pointer;
font-family: 'Baloo Bhaina 2', cursive;
}
.btn:hover{
background-color: rgb(133, 172, 172);
}
.container{
/* border: 2px solid green; */
margin: 74px 16px;
padding: 2px 2px;
width: 55%;
border-radius: 2px;
}
.form-group input{
text-align: center;
display: block;
width: 364px;
padding: 6px;
border: 2px solid black;
margin: 10px auto;
font-size: 18px;
border-radius: 23px;
font-family: 'Baloo Bhaina 2', cursive;
}
.container h1{
text-align: center;
}
.container button{
display: block;
width: 23%;
margin: auto;
}
</style>
<body>
<header class="header">
<!-- left box for logo -->
<div class="left">
<img src="logoimage.png" alt="">
<div>Shailesh Fitness</div>
</div>
<!-- mid box for nav bar -->
<div class="mid">
<ul class="navbar">
<li><a href="#" class="active">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Fitness </a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<!-- right box for buttons -->
<div class="right">
<button class="btn">Call Us Now</button>
<button class="btn">Email Us</button>
</div>
</header>
<div class="container">
<h1>Join The best gym of gorakhpur now</h1>
<form action="noaction.php">
<div class="form-group">
<input type="text" name="" placeholder="Enter Your name">
</div>
<div class="form-group">
<input type="text" name="" placeholder="Enter Your age">
</div>
<div class="form-group">
<input type="text" name="" placeholder="Enter Your Gender">
</div>
<div class="form-group">
<input type="text" name="" placeholder="Enter Your Email">
</div>
<button class="btn">Submit</button>
</form>
</div>
</body>
</html>
Comments
Post a Comment