Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0] Fit content to <html> instead of <body> #726

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

browner12
Copy link
Contributor

most browsers apply a margin of 8px to the <body> tag automatically. it's very common for most CSS frameworks to "normalize" this to zero, which is why for most people the size and the size are the same.

since it's not the case for everyone, we can use the size here instead.

I had run across this randomly in some tests, but didn't think anyone else would actually come across this, so I left it alone, but I guess we can update it now.

This is most likely the solution for #719

most browsers apply a margin of 8px to the `<body>` tag automatically. it's very common for most CSS frameworks to "normalize" this to zero, which is why for most people the <body> size and the <html> size are the same.

since it's not the case for everyone, we can use the <html> size here instead.
@taylorotwell taylorotwell merged commit f7071eb into laravel:5.0 Jan 27, 2020
@browner12 browner12 deleted the patch-1 branch January 27, 2020 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants