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

JavaScript

rnw98613
rnw98613
348 Points

CSS/Javascript collapse sidebar layout

Hello, Can someone help me to create this responsive collapse sidebar layout, like in this pic; https://imgur.com/a/SZjRjVY

Thanks!

Steven Parker
Steven Parker
229,732 Points

What issues are you having? Post your code here so we can see what it's doing now.

1 Answer

rnw98613
rnw98613
348 Points

@Steven Parker, Here is code, I want to add that interactive button to create a collapsed mini sidebar; https://codepen.io/anon/pen/zLGQOb

Better example is here; https://ant.design/components/layout/#components-layout-demo-custom-trigger