Reputation: 27218
For a simple business-card-style web-page, it seems possible to use the html
element in CSS to specify background-color
for your document, and add some fancy border
/ margin: auto
/ padding: 1em
through body
. Looks nice in Google Cache, BTW, which would have their header within your body, all nice and fancy, just as it was meant to be.
However, the above seems to conflict with the Internet Archive Wayback Machine, with their interface being overlaid on top of your body
(doesn't look very bad, but not the best). Also, the body {margin: auto}
part (used to centre the body element) gets lost through the Yandex cache.
We can add a div
, and switch the CSS rule from body
to div
, and from html
to body
(and it'll look perfect in Yandex cache), but then it starts conflicting with Google Cache, looking really weird; Internet Archive is somewhat better, but their own div
's do get dangled with your stylesheets, too, looking quite unintended.
You could argue that I should use an id
attributes, but then it's not like it's guaranteed that it's not going to conflict with something else again, too, plus the style will not be generic anymore.
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 colour through CSS, and an article
or section
for the box element with the border and central position?
Upvotes: 4
Views: 279
Reputation: 4807
The Internet Wayback Machine does not guarantee1 complete archives2:
Please note that while we try to archive an entire site, this is not always possible....Additionally some sites do not archive well and we cannot fix that.
...
Not every date for every site archived is 100% complete.
So there is no way to guarantee that the archived site's CSS will always display as it did when live or even always be available. The file(s) might not get indexed on a particular date. Nor is there any way to ensure future changes to the Wayback Machine's own CSS (or how they handle archived CSS) won't change and cause other issues.
Upvotes: 2