h1, h2, p {
text-align: center;
}
margin-left=auto { } div {
width: 80%;
background-color: burlywood;
}
If you look at your above code, notice the first block’s format:
you have a few html elements which opens the bracers to receive styling (text-align) properties / values. You can do this same format with just 1 element if you want – the <div> in the next block could be done the same way.
the problem is in the second styling block- you have called on a property without first specifying the element you want to style. You would want something more like this: div { margin-left: auto; }
You want to make sure anything that changes appearance of an existing element is called on inside the curly bracers which follow the element you are styling.