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 trialJason Veiga
Front End Web Development Techdegree Graduate 12,347 PointsIssues on putting images side by side.
In the video "Applying Media Queries", Anwar was showing us how to put images side by side. I've followed along, but when I insert the below classes in CSS, nothing happens. I've must've messed up somewhere, but I don't know where (I did not change anything on HTML).
.column { display: inline-block; width: 48%; margin-right: -4px; }
.column:first-child { margin-right: calc(4% - 4px); margin-bottom: 0; }
1 Answer
Steven Parker
231,261 PointsThere's a syntax error at line 116 of style.css where the closing brace for the .callout rule is missing. This causes the entire media query section to be ignored.
Also, the setting in the video in the .column rule for width is 48%, just as you show above. But on line 147 of the file it is set at 50% instead.
Jason Veiga
Front End Web Development Techdegree Graduate 12,347 PointsWow, it worked. I was going crazy trying to find the error.
Thank you so much for your help, and fast response!
Steven Parker
231,261 PointsSteven Parker
231,261 PointsTo share the whole code and make your issue possible to replicate, make a snapshot of your workspace and post the link to it here.