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 trialZachary grace
6,682 PointsMake banner pic span width of entire page
I want to make a banner picture span the entire width of a page regardless of what screen size it's being viewed on. How would I do that?
1 Answer
Andrew Molloy
37,259 PointsYou'd basically set a div that contains only the image set to a width of 100%.
Zachary grace
6,682 PointsZachary grace
6,682 PointsYeah That's pretty much what I figured out. Thank you. I added a class to the div they were in already and then set the width of the class = 100%. Thanks