For easy-to-style Web page business cards it is possible to use an element htmlin CSS, to indicate background-colorto your document, and add a few fancy border/ margin: auto/ padding: 1emthrough body. It looks good in Google Cache, BTW, which will have a headline inside your body, everything is beautiful and fantastic, as expected.
However, the above seems to conflict with the Internet Backway Machine, as their interface overlays on top of yours body(it doesn't look very bad, but not the best). In addition, the part body {margin: auto}(used to center the body element) is lost through the Yandex cache.
We can add divand switch the CSS rule from bodyto div, and from htmlto body(and it will look perfect in the Yandex cache), but then it starts in conflict with Google Cache, looking very strange; The online archive is slightly better, but their own divreally hangs out with your style sheets, looking completely unintentional too.
You can argue that I should use attributes id, but then he didn’t like that he will not conflict with something else again, plus the style will no longer be common.
What would be the best approach if I want to stick with standard html5 elements? Perhaps still use body(or html?) To set the background color via CSS, and articleor sectionfor a window element with a border and center position?
source
share