I am having an issue with positioning some elements in the Tea Cozy project. The elements display off to the right side of the container that I want it to display within. I’m a bit stuck on how to fix this issue.
CSS
html,
body {
font-size: 22px;
font-family: Helvetica;
background-color: black;
color: seashell;
}
.container {
display: flex;
height: 700px;
width: 1200px;
background-color: black;
}
.header {
display: flex;
height: 69px;
border-bottom: 1px solid seashell;
width: 1200px;
}
.header img {
height: 50px;
padding-left: 10px;
padding-top: 10px;
padding-bottom: 10px;
}
.header li {
list-style-type: none;
margin: 0;
padding: 0;
text-decoration: underline;
display: inline-block;
font-family: Helvetica;
font-size:22px;
}
.mission {
height: 700px;
width: 1200px;
padding: 10px;
display: flex;
opacity: 0.9;
}
.rectangle h2 {
color: white;
text-align: center;
padding: 0;
flex-direction: row;
}
items h2 {
padding: 0;
color: white;
text-align: center;
background-color: black;
height: 50px;
width: 1200px;
flex-direction: row;
}
.rectangle h4 {
color: white;
text-align: center;
padding: 0;
display: flex;
flex-direction: row;
}
items h4 {
padding: 0;
color: white;
text-align: center;
background-color: black;
height: 50px;
width: 1200px;
border-color: black;
}
.rectangle {
background-color: red;
height: 50px;
width: 1200px;
display: flex;
align-items: center;
flex-direction: row;
}
.items {
width: 1000px;
}
.items img {
height: 200px;
width: 300px;
padding: 10px;
display: inline-block wrap;
margin-left: auto;
margin-right: auto;
opacity: 0.9;
align-items: center;
}
p {
color: white;
}
.locations {
display: block;
width: 1200px;
height: 500px;
margin-left: auto;
margin-right: auto;
opacity: 0.9;
}