Need help...
Stuck very fast, I have to finish this job tomorrow, but my CSS code doesnβt work for the header and footer, while the same file works for other things like font family, font size, body background color ...
body {
font-family: Arial;
font-size: 15px;
line-height: 1.6em;
background-color: linen;
}
.container {
border: 2px solid black;
width: 70%;
margin: 20px auto;
overflow: auto;
}
.Pull-Left {
Float: Left;
}
.Pull-Right {
Float: Right;
}
header {
background-color: blue;
}
footer {
background-color: blue;
}
<!DOCTYPE html>
<html>
<head>
<title>ABCD</title>
<link rel="stylesheet" href="CSS/style.css" type="text/css">
</head>
<body>
<div class="container">
<header>
<div class="Pull-Left">This Is The Main Title</div>
<div class="Pull-Right">***Some Text***</div>
</header>
</br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br>
</br></br></br></br></br></br></br></br>
<footer>
<div class="Pull-Left">This Is The Footer</div>
</footer>
</div>
</body>
</html>
Run code
source
share