正在加载视频...
视频加载失败
CSS Trick ⭐️ You can create a resizable panel UI with CSS alone by leaning into resize and display:grid 👀 .panels{ display: grid; grid-template-columns: auto 1fr; 👈 } .resizer{ max-width: 100cqi; overflow: hidden; resize: horizontal; 👈 } Putting a resizable element into the first panel provides a way to... show more
10 条评论

Here's that @CodePen link! 🚀 You can scale the resizable piece up so you can have a bigger handle. But, Firefox starts lagging a bit when you scale the resizable element up to like 40 😂 That said, it does actually work still in each browser 🤙

Yooo this is sick!

Popped up a while back and felt like a cool grid use case 😁 But, it does still baffle me how resizable elements are so easy to create, yet there is no avenue to style and make the controls more accessible for people 😞

This can make a good base, but this is not accessible. I know you are a CSS wizard, so could you make it work with a `<input type="slider">` or something as at least that would be keyboard accessible (even if it isn't a complete solution)? 💗

The current resize behaviour is not either for the record.

I love your content man, thank you!

More than welcome Tyler! 🙏 Also, thank you, I appreciate it. Haven't been sure what things to build/post this week with a bunch of ideas in my backlog 🙃 That whilst also wanting to have a chilled one before starting the new role 😅 I'm also open to requests! 🤙

could you reload the page abd restore a layout to what it was previously?

You'd need to store the sizing in localStorage or something. It would be akin to how people track scroll position where the browser can't handle certain scenarios.

everytime you tweet something I go here 🤣
