<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>Responsive</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: rgb(236, 160, 21);
}
#heading{
background-color: rgb(21, 78, 113);
color: white;
text-align: center;
padding: 20px;
}
.a1{
background-color: black;
display: flex;
flex: content;
flex-direction: row;
flex-wrap: wrap;
text-align: center;
}
.a1 a{
color: white;
flex-direction: row;
flex: content;
align-content: center;
padding: 15px;
}
.a1 a:hover{
background-color: #0f70cb;
}
.a1 a{
text-decoration: none;
}
.container{
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 50px;
}
.box{
font-size: 2em;
background-color: white;
height: 100px;
width: 300px;
text-align: center;
border-radius: 5px;
padding: 25px;
}
#last{
background-color:black;
color: white;
text-align: center;
padding: 20px;
bottom: 0;
left: 0;
position: fixed;
width: 100%;
}
</style>
</head>
<body>
<header>
<h1 id="heading">My Responsive Website</h1>
<nav class="a1">
<a href="#home">Home</a>
<a href="#About">About</a>
<a href="#services">services</a>
<a href="#Contact">Contact</a>
</nav>
</header>
<div class="container">
<div class="box" id="box1">Div1</div>
<div class="box" id="box2">Div2</div>
<div class="box" id="box3">Div3</div>
</div>
<footer id="last">
© 2024 My Responsive Website
</footer>
</body>
</html>