5 <meta name=
"viewport" content=
"width=800">
7 html { font-size:
16px; }
8 body { width:
896px; margin:
0; overflow-y: hidden; }
14 <p style=
"font-size: 2.5rem; margin: 1rem; border: 1rem solid blue; padding: 1rem">
15 This text should get autosized to
40px computed font size (
16 *
800/
320), but the
1em margins, borders and padding should remain just
16px. While debatable, this generally looks more consistent than having them be scaled.
<br>
16 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.