How to make a beautiful footer section for your web page(using only CSS/HTML)
Hey guys once again welcome to the Decoders blog, I hope you all are doing well and today I'm present with a footer section for your web page(with the help of CSS/HTML) The given code will help you to built it, so just follow the codes and make your footer section easily , and enjoy it with your friends
This is how your footer section is gonna look like!<!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>footer</title>
</head>
<style>
.container{
/* border: 2px solid black; */
margin-top: 350px;
background-color: rgb(114, 104, 104);
color: black;
border-radius: 10px;
}
h1{
text-align: center;
display: block;
}
p{
text-align: center;
display: block;
}
a{
text-align: center;
display: block;
}
#box1{
position: relative;
display: block;
left: 35%;
top: 1%;
/* border: 2px solid red; */
width: 46px;
}
#box2{
position: relative;
left: 45%;
display: block;
/* border: 2px solid red; */
width: 46px;
bottom: 22px;
}
#box3{
position: relative;
display:block;
/* border: 2px solid red; */
width: 100px;
left: 56%;
bottom: 46px;
}
#box4{
position: relative;
display:block;
/* border: 2px solid red; */
width: 177px;
left: 68%;
bottom: 69px;
}
#box5{
position: relative;
display: block;
/* border: 2px solid red; */
width: 100%;
background-color: black;
color: white;
text-align: center;
border-radius: 10px;
}
</style>
<body>
<div class="container">
<h1>Company Details</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore repellat
temporibus vero laboriosam doloremque inventore <a> harum possimus quasi,
voluptate </a>hic</p>
<div id="box1">Home</div>
<div id="box2">About</div>
<div id="box3">Contact us </div>
<div id="box4">Terms and Conditions</div>
<div id="box5">Copyrigth strike</div>
</div>
</body>
</html>
Comments
Post a Comment