section {
width: 80%em;
margin: auto auto 10px auto;
max-width: 600px;
}
Hello, I am trying to figure out why I got an error when using this as my code. I was under the impression that when using “em” it pulls the base value from the parent element. Would I still be correct in this instance? The correct code says it’s just 80% not 80%em. It is also telling me that my code of shorthand property of margin: auto auto 10px auto: is incorrect. Am I also correct in this instance?
PROMPT BELOW
Set the width of the section
elements to 80%
of their parent container. Then, use margins to center the section
elements, adding 10px
to the bottom margin.
Also, ensure the section
elements cannot be larger than 600px
in width.