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

Stephen Cole
PLUS
Stephen Cole
Courses Plus Student 15,809 Points

Instead of calc() why not just shrink the column width to 45%?

In the video, we're taught to do the calculation. However, I made the column width 45% and it look just fine.

Is there a benefit to using calc() instead just making the columns slightly more narrow?

1 Answer

Steven Parker
Steven Parker
231,198 Points

Calculating the margin insures efficient use of all the available space. Using a smaller width will appear very similar in typical sizes, but will make the column smaller than it needs to be in very large sizes and/or too large when the window size is very small.