Y
Hacker News
new
|
ask
|
show
|
jobs
by
teniutza
2557 days ago
Could you please tell me what the reason for the additional
body { height: 100%; }
in the resets is? At first glance, it doesn't seem necessary.
2 comments
username444
2556 days ago
An explanation of every style being applied would be useful. I can't tell what the purpose of this entire thing is.
link
vegemike
2556 days ago
That's a good idea, thanks!
link
vegemike
2556 days ago
That could be a mistake if it's already in the `html, body` ruleset. In general, however, it's to ensure the `body` element takes up the entire height of the page, which is useful for client apps I've found.
link
fiddlerwoaroof
2554 days ago
This is a bit tricky for a reset because it changes the meaning of percentage heights in child elements.
link
vegemike
2554 days ago
I haven’t experienced that myself. Do you have an example or documentation for that?
link