I am working on a site. Many people claim that the item htmlexpands to the entire viewport. When I do the code as follows:
html
<!doctype html> <html> <head> <style> html{ border:1px solid red; } </style> <meta charset="utf-8"> <title>Test</title> </head> <body> Hi </body> </html>
The border is only displayed at the top of the screen saying "Hello." Does the htmldefault default for the entire screen in the browser match ?
, , html CSS; - , . auto; auto spec, - , , , . body.
auto
body
, html, "" , html . ( body html ); . :
, , , ..
html ?
quirks IE ( 6); - ( , CSS2, CSS ). html body 100% quirks, html body, , .
. html body auto . -
html,body { height: 100%; }
.
Source: https://habr.com/ru/post/1540151/More articles:Why does the du command show double size when sending the h flag? - unixCreating PostgreSQL array types of type "text []" using JPA (EclipseLink) - postgresqlStrange bug with AIR AS3 projector - flexbeginner: exception thrown in catch; implement a loop? - Java - javaRuby on Rails Mac OSX Mavericks quits after installing RVM - ruby | fooobar.comGetting task results from synchronous execution - c #Performance Issues Delphi FireMonkey Canvas - delphiIn Meteor JS, how to control Javascript load order in relation to DOM load order? For animations - javascriptCheck Flask upload if user did not select file - pythonorder_by in the Many-to-many field leads to duplicate records in the query set - djangoAll Articles