Resp. Web Des. Tech Doc

Hi everyone, more questions from me! In the original assignment example code,
they have defined #main-doc in CSS twice. The first definition states position: absolute, and the second states it as relative. Bother have different margin properties.

Is this deliberate? Is it a clever coding trick that gives some benefit?

Thx, stubir.

@media only screen and (max-width: 815px)

If you do not understand that line - keep learning. It will be covered in later lessons and you will know why main-doc is written twice.

OK, I’ve just read it over a few times and I guess it’s because it’s within a media query, which I didn’t pick up first time around.

By the way, if you ever come to me on a topic on which I’m an expert, I commit to giving you an answer that you can use :grin: