#7 Margin Auto


#1

I am having trouble with this, what is it that I am missing?

  • {
    border: 1px dashed black;
    }

div {
height: 50px;
width: 100px;
border: 2px solid black;
border-radius: 5px;
background-color: #308014;
Margin:auto;
}indent preformatted text by 4 spaces


#2

I figured it out.

needed to be

 * {
    border: 1px dashed black;
}

div {
    height: 50px;
    width: 100px;
    border: 2px solid black;
    border-radius: 5px;
    background-color: #308014;
    margin:auto;
}

#3

Then mark it as resolved please