DEV Community

Discussion on: Build a Pixel Perfect Skeleton Loader Using CSS 🚀

Collapse
tomyo profile image
Tomas Hayes • Edited on

How do the user detail elements get the width, when on skeleton mode (without text inside)?

Nice idea to set dimensions on containers for this effect!

Collapse
rammcodes profile image
Ram Maheshwari 💚 Author

Yeah, if there's no text inside then we can set height for the elements. Thanks for sharing it, Tomas 😄

Collapse
modelhusband01 profile image
Model Husband 👑

How can I just use the avatar and text beside it alone

Thread Thread
rammcodes profile image
Ram Maheshwari 💚 Author

If you mean how I'm making the avatar and text sit on the same line then for that I'm using the flex property on the container which will make the items inside it like text and avatar sit on the same line.

Thread Thread
modelhusband01 profile image
Model Husband 👑

Okay what if I want to use the avatar and text repeatedly just like messages in Whatsapp how will I do that