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 trialMichael Reddington
2,786 PointsContent that stretches beyond the grid
Hi - I want to place an image next to a block of text side by side.
The gird I'm working to is about 1350px wide on desktop.
I want the image to be completely visible when the browser is stretched wide but partially hidden if the browser width is reduced below 1350px. Similar to the background images on this page: https://www.apple.com/uk/shop/gifts
I thought about setting it as a background image but I can't get the image to align where I want it to.
Any ideas?
Cheers Mike
1 Answer
Piotr Manczak
Front End Web Development Techdegree Graduate 29,363 PointsTo see an image partially hidden only when browser width is reduced below 1350px you may use @media () {}, which is Media Quarry. If you use floats to place image next to text it may be worth using .clearfix.
Piotr Manczak
Front End Web Development Techdegree Graduate 29,363 PointsIf content stretches beyond the grid maybe you should use: ( box-sizing: border-box; ). Hard to say if I can't see it.
Michael Reddington
2,786 PointsMichael Reddington
2,786 PointsThis is the page I want this layout for: www.reddgate.com/work/ATT-Uverse.html
I've had to slice the laptop image at the top in half so it doesn't mess up the grid.