Technical Documentation Project,

What’s wrong with my code? Global Variables go soo far right while Introduction, Hello World stay in the left, what did I do wrong?

All elements after “Declaring Variables” are nested within the “Declaring Variables”, thus Declaring Variables became the parent element of them. Child settings (including margin) apply against the parent element’s setting. If parent has margin-left 10px, child has margin-left 10px, that means child has margin-left 10px+10px against the most left of the display.

It’s easier to see this problem if you use browser dev console. Right click > inspect > Elements. Then click most left-top icon and hover on any part of your web page.

1 Like

Thanks, it works now. I passed the test