In: Computer Science
Apply following to header and footer sections of page in css
center text
background color rgb(254,198,179)
padding should be 20px
<html>
<head>
<title>Header</title>
<style>
/* Body css sets the color, padding, text align */
body{
padding-top: 60px;
padding-bottom: 40px;
vertical-align: middle;
text-align: center;
background-color: rgb(254,198,179);
}
/* Sets footer width, color, position, padding */
.fixed-header, .fixed-footer{
width: 100%;
color: #000;
position: fixed;
background: #FFF;
padding: 10px 0;
}
/* sets header at top */
.fixed-header{
top: 0;
}
/* sets footer at bottom */
.fixed-footer{
bottom: 0;
}
/* below class text at center*/
.centertext{
width:100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
nav a{
color: #000;
text-decoration: none;
padding: 7px 20px;
display: inline-block;
}
/* Sets the padding at 20px */
.container p{
line-height: 20px;
padding:20px;
}
</style>
</head>
<body>
<header>
<div class="fixed-header">
<div class="container">
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Products</a>
<a href="#">Services</a>
<a href="#">Contact Us</a>
</nav>
</div>
</div>
</header>
<center>
<div class="container centertext">
<p>We may not know about your favourite coffee, but we surely know what you need right now.
And that is to learn your favourite programming language with us, that can optimise
the best results for the future. the programming language with us, that can optimise
the best results for the future. </p>
<p>We may not know about your favourite coffee, but we surely know what you need right now.
And that is to learn your favourite programming language with us, that can optimise
the best results for the future.</p>
</div>
</center>
<footer>
<div class="fixed-footer">
<div class="container">Copyright © 2020 Your Company</div>
</div>
</footer>
</body>
</html>