I had many years of experience working with html / css, and I just recently started digging in a strange world. I bought a book, read many textbooks, but something pushed me. I have not yet found one example that does not use margin: 0 auto for the base container of the website (for the center of the site). They, for example, all use:
width: 90%; margin: 2% auto;
What I'm trying to do is make a site that does not center the main container, but simply aligns it to the left. Then, for some reason, when I use a width of 96% (or even 100%) and a margin of a few percent, it does not stretch to the right end, as usual, so there is always a larger margin to the right of the viewport.
Am I watching something very logical?
Hooray!
source share