Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Meenachinmaylaracasts's avatar

I want a sticky side bar both side of my page using tailwind css?

I want to create a sticky side bar, which should not be scrollable with main content. just like tailwind css main page or laracasts discussion page where right side channels does not move in y direction but thread container moves. i hope everyone can easily understand this easy concept like what i want to create? please help me if any one listening to me! i need help :( i must use tailwind css only so please help me with that only. Thank you.

0 likes
3 replies
Sinnbeck's avatar

Go to tailwind webside. Right click and select inspect. See the classes they used for theirs. Copy and paste. Done :)

2 likes
Meenachinmaylaracasts's avatar

Thank you for your reply. but copying and using a production build code into your own app is not that easy. it is so confusing and doing that you can never learn the basic of that thing because you are not learning how to do that instead you are just copying and pasting (in case you are able to do it) it. then every time later you might be do the same loop again.

so i want a solution which i can use and i can learn from that as well for my future usage.

Sinnbeck's avatar

Well tailwind is more or less just classes for each css method. Do you know css? If not I would suggest reading up on basic css first. Google "css beginner tutorial". Then just use the tailwind classes when you need to use some sort of css.

If the tutorial tells you to write

.myclass {
    display: inline-block;
}

You simply give your element the class inline-block

https://tailwindcss.com/docs/display/#app

You can also inspect each class on their sidebar, and check what they do. They reference the css method in the documentation.

Please or to participate in this conversation.