Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Enhancing Design with CSS Finishing Touches Applying Media Queries

Jason Veiga
seal-mask
.a{fill-rule:evenodd;}techdegree
Jason Veiga
Front End Web Development Techdegree Student 4,183 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
220,682 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
220,682 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.