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 How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

eric ka
eric ka
6,929 Points

2 columns menu

hi all. right now it's 2 columns portfolio my question is how would you change this foe three or for column? thanks eric

2 Answers

Dillon Patel
Dillon Patel
4,025 Points

There's multiple ways to do this that you will learn about. For example, you can have four <section> elements, and in your CSS, float section { float: left width: 20% margin: 0 2.5px }

This would give a width of each section element 20% and allow 2.5px of margin on the right/left of all 4 elements. This would take up the full 100% width of the page.

Let me know if this answered your question!

eric ka
eric ka
6,929 Points

hey Thank you !!! a lot it's works