Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCharlie Person
8,692 PointsGradient and background issues
Not sure what the problem is, but when I add a background image to the body, and before it I put a gradient, the gradient stops when the content ends, like this-
body {
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)), url("vballchick.jpg");
background-size: cover;
}
For some reason the picture spans the full height of the body but the gradient is cutting off when the content on the page ends! Any help would be very appreciated!! Iām using bootstrap
1 Answer
Chris Crowder
Courses Plus Student 11,609 PointsThe gradient will only take on the size of its parent container. Have you tried setting the body height to 100%?