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 trial

CSS Enhancing Design with CSS Finishing Touches Applying Media Queries

Jason Veiga
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jason Veiga
Front End Web Development Techdegree Graduate 12,347 Points

Issues 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; }

Steven Parker
Steven Parker
231,268 Points

To share the whole code and make your issue possible to replicate, make a snapshot of your workspace and post the link to it here.

1 Answer

Steven Parker
Steven Parker
231,268 Points

There'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.