hi. okay not liking my margin-left to then centre the img element i have in my css code. so what am i doing wrong. have reset the lesson. so why is it not passing. will paste my css code and the error message below.
can any one help, and the help button would not come up with my screen reader jaws. tried turning off my screen reader and then turning it back on in chrome. not giving me that option. so pasting the error message and my css code. can any one help.
marvin.
ps: will try typing it in again in the editor.
marvin.
Sorry, your code does not pass. You’re getting there.
You should set the margin-left property to auto.
h1,h2, p {
text-align: center;
}
h1, h2 {
font-family: Impact, serif;
}
h1 {
font-size: 40px;
margin-top: 0px;
margin-bottom: 15px;
}
h2 {
font-size: 30px;
}
hr {
height: 2px;
background-color: brown;
border-color: brown;
}
.bottom-line {
margin-top: 25px;
}
.established {
font-style: italic;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
}
body {
font-family: sans-serif;
width: 80%;
margin-left: auto;
margin-right: auto;
padding: 20px;
background-image: url("https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg");
}
.menu {
width: 80%;
max-width: 500px;
margin-left: auto;
margin-right: auto;
padding: 20px;
}
.flavor, .dessert {
text-align: left;
width: 75%;
}
.price {
text-align: right;
width: 25%;
font-size: 18px;
}
.item p {
display: inline-block;
margin-top: 5px;
margin-bottom: 5px;
font-size: 18px;
}
/* footer */
footer {
font-size: 14px;
}
address {
font-style: noarmal;
}
.address {
margin-bottom: 5px;
}
a {
color: black;
}
a:visited {
color: black;
}
a:hover {
color: brown;
}
a:active {
color: brown;
}