How to hide scrollbar with Tailwind css?

  Рет қаралды 12,058

AyyazTech

AyyazTech

10 ай бұрын

🌟 Exclusive Hosting Deal from Hostinger 🌟
Ready to launch your own website? Use my affiliate link to get an exclusive discount on Hostinger's reliable and high-performance hosting plans: www.hostg.xyz/SHEyO
Hostinger offers:
- Easy-to-use control panel
- 24/7 customer support
- 30-day money-back guarantee
- And more!
Don't miss out on this amazing offer. Click the link above to get started today! 🚀
---
I delved into the world of Tailwind CSS, exploring how to hide scroll bars while maintaining functionality. Whether you're a beginner or an experienced developer, I shared insights on achieving this and the core principles behind it.
=====================
Chapters:
=====================
00:01 - Introduction to Tailwind CSS and the need to hide scroll bars
00:57 - Method 1: Using Tailwind utilities to combine the scroll and no scroll bar classes
02:49 - Defining a custom plugin in tailwind.config.js to add the no scroll bar utility
03:33 - Testing the implementation by adding the no scroll bar class
04:18 - Method 2: Using custom CSS with Tailwind to hide scroll bars
04:53 - Considerations for hiding scroll bars and ensuring user-friendliness
05:02 - Conclusion and call to action for viewers
#TailwindCSS #WebDesign #UserExperience
=====================
Related Videos:
=====================
🎨 How to create a sidebar in Nextjs and Tailwind CSS?: • How to create a sideba...
💻 How to integrate Tailwind CSS with GrapesJS to make a Drag and Drop GUI?: • How to integrate Tailw...
⚙️ Tailwind CSS: A Deep Dive into Flexbox and Grid Layouts: • Tailwind CSS: A Deep D...
🛠 10 amazing tricks with Tailwind CSS you didn't know: • 10 amazing tricks with...
🔧 Effortlessly Install Tailwind CSS using NPM: • Effortlessly Install T...
🖥 How to install Tailwind css in Vue js?: • How to install Tailwin...
📱 How to create responsive Navbar in nextjs and tailwind css: • How to create responsi...
⚡ How to change breakpoints in tailwind css: • how to change breakpoi...
=====================
To read written versions of AyyazTech tutorials, please visit AyyazTech.com
=============
If you want more content like this then please subscribe to my channel and click on the bell icon to get all of the notifications.
/ @ayyaztech

Пікірлер: 23
@user-tq2no8zy6o
@user-tq2no8zy6o 5 ай бұрын
Thank you, this is really helpful
@grootscreationz4271
@grootscreationz4271 Ай бұрын
Thankyou very much
@ApurboRoy7077
@ApurboRoy7077 6 ай бұрын
Thanks brother, That helped a Lot.
@AyyazTech
@AyyazTech 6 ай бұрын
You're welcome! If you have any more questions or need further assistance, feel free to ask. Don't forget to subscribe and turn on the notification bell to stay updated with our latest content. Thank you for your support! 😊👍
@marcusokodugha2101
@marcusokodugha2101 9 ай бұрын
plugins: [ function ({ addUtilities }) { const newUtilities = { ".no-scrollbar::-webkit-scrollbar": { display: "none", }, ".no-scrollbar": { "-ms-overflow-style": "none", "scrollbar-width": "none", }, }; addUtilities(newUtilities); }, ],
@AyyazTech
@AyyazTech 9 ай бұрын
Thank you for sharing the plugin code for hiding the scrollbar with Tailwind CSS. Your method aligns perfectly with what was demonstrated in the video. The video explained two methods for achieving this, and your approach fits the first method, where a custom utility class .no-scrollbar is defined in the tailwind.config.js file. This class essentially sets the display of the scrollbar to "none" for various browsers, ensuring a consistent look across different platforms. The video also emphasized the importance of maintaining usability even when hiding visual elements like the scrollbar. While hiding it might enhance the aesthetics for some designs, it's crucial to ensure that users are still aware of the scrollable content. It's great to see community members sharing their approaches and contributing to the learning process. If you have any more insights or methods to achieve similar results, please continue to share. And don't forget to give the video a thumbs up if you found it beneficial! Happy coding! 😊
@mohabedr5030
@mohabedr5030 6 ай бұрын
Thanks for teaching this stupid youtuber what should he put in the description.
@BendaCZ
@BendaCZ Ай бұрын
@@AyyazTechis this ChatGPT replying xD
@santaclaus897
@santaclaus897 Ай бұрын
@@BendaCZ it's hilarious 😂😂😂😂
@Movie_ki_kahani
@Movie_ki_kahani 3 ай бұрын
Thanks buddy
@modyabdo-9104
@modyabdo-9104 10 ай бұрын
It's nice I am waiting for more videos about angular
@AyyazTech
@AyyazTech 10 ай бұрын
Thank you for the kind words! I'm glad you found the video useful. Great to hear that you're interested in Angular content. We're working on more tutorials, and I'll make sure to prioritize Angular-related videos. Stay tuned to our channel for updates and thank you for your support! 😊👍
@somsk56
@somsk56 4 ай бұрын
Thanks a lot I was stuck in this prblm 😅 since long time
@AyyazTech
@AyyazTech 4 ай бұрын
I'm so glad this tutorial solved a problem you've been struggling with for a while! It's a great feeling when you finally find the solution you've been looking for. Helping developers like you overcome challenges and move forward in their projects is what motivates me to create content. Your success is my success! If you found this video helpful, consider giving it a like and sharing it with your colleagues who might also benefit from it. And don't forget to subscribe to the channel for more problem-solving Angular tutorials. For more in-depth articles and resources, check out ayyaztech.com. It's packed with valuable information to level up your Angular skills. Thanks again for your comment, and happy coding! Feel free to reach out if you have any more questions.
@LearnFromCharlie
@LearnFromCharlie 3 ай бұрын
thanks
@khangtrinh4617
@khangtrinh4617 9 ай бұрын
amazing thanks
@AyyazTech
@AyyazTech 9 ай бұрын
You're welcome! It's great to hear that you're satisfied with the content. Thank you for your support, and stay tuned for more amazing tutorials. If you have any specific topics or questions you'd like covered in future videos, feel free to share them. Don't forget to subscribe and share the videos with friends who might also find them helpful. Thanks again!
@user-dl4sk5zn2n
@user-dl4sk5zn2n 6 ай бұрын
Thanks a lot bro..
@AyyazTech
@AyyazTech 6 ай бұрын
Thank you so much for your kind words! I'm really glad you found the information helpful. If you have any more questions or there's another topic you're curious about, feel free to ask. We're here to help and share knowledge that makes technology more accessible and easier to understand. Remember to subscribe to the AyyazTech channel for more updates and tips. Your support helps us keep creating content that matters to you. Like, share, and comment on our videos to keep the conversation going. Happy coding, and we look forward to hearing from you again!
@nomxxn
@nomxxn 8 ай бұрын
it's still displaying for me, even tried using global css too but nothings working
@AyyazTech
@AyyazTech 8 ай бұрын
It sounds like you're having trouble hiding scroll bars in your project using Tailwind CSS, as shown in the tutorial. This can be a bit tricky, especially since different browsers handle scroll bars in their own ways. Here are a few troubleshooting steps you can take: Ensure Tailwind Configuration: Make sure that your Tailwind configuration (tailwind.config.js) is correctly set up as shown in the tutorial. The custom utility for no-scrollbar needs to be correctly defined in the config file. Check for Typos: Double-check your class names for any typos. Even a small typo can cause the CSS not to apply as expected. Verify CSS Import: Ensure that your Tailwind CSS file is correctly imported into your project. If the CSS file is not being imported correctly, none of the Tailwind utilities will work. Browser Compatibility: Some CSS properties might not work as expected in all browsers. For instance, the -webkit-scrollbar property works in WebKit browsers like Chrome and Safari but not in Firefox. Use of Global CSS: If you're trying to apply the no-scrollbar utility globally and it's not working, make sure that the global CSS file is properly linked and loaded in your project. Testing in Different Browsers: Try testing your application in different browsers to see if the issue is browser-specific. Inspect Element: Use your browser's developer tools to inspect the element and see if the no-scrollbar class is being applied and if other styles are possibly overriding it. Fallback to Custom CSS: If Tailwind's utility doesn't work, consider writing custom CSS to hide the scroll bar and ensure it's being applied correctly. If you continue to face issues, please provide more details or consider seeking help from the Tailwind CSS community forums. And don't forget to subscribe to the AyyazTech KZbin channel for more tutorials and tips. Your likes, shares, and engagement help us grow and provide more valuable content. Thanks again, and happy coding! 🔔👍🌟💻
@user-pl3rk4nu3d
@user-pl3rk4nu3d 7 ай бұрын
Thank you very much for this video. I am having an issue, although I define the no-scrollbar class in tailwind.config.js but it doesn't work to hide the scrollbar in my project. Any idea what could be the reason?
@AyyazTech
@AyyazTech 6 ай бұрын
Thank you for reaching out and I'm glad you found the video useful! Regarding the issue you're facing with the 'no-scrollbar' class in Tailwind CSS not hiding the scrollbar in your project, there are a few common reasons this might be happening: Tailwind Configuration: Ensure that your custom 'no-scrollbar' class is correctly defined in tailwind.config.js. It should be under the plugins section with the proper CSS for hiding scrollbars. Double-check for any typos or syntax errors. CSS Specificity: Sometimes, other CSS rules might override your custom class due to higher specificity. Inspect the element in your browser's developer tools to see if the 'no-scrollbar' class is being applied and if any other rules are overriding it. Build Process: After updating tailwind.config.js, ensure you rebuild your project so that the changes take effect. If you're using a development server, it might need to be restarted. Browser Compatibility: The methods to hide scrollbars are somewhat browser-specific. The provided solution targets most modern browsers but might not work in all cases. Ensure you're testing in a compatible browser (like recent versions of Chrome, Firefox, or Edge). Correct Usage: Make sure you're applying the 'no-scrollbar' class to the correct element, the one that's actually scrollable. Sometimes the scrollbar might be on an inner element rather than the one you're targeting. If you've checked all the above and it's still not working, you might want to provide a snippet of your code or further details so that the community or the video creator can offer more specific guidance. And remember, keep experimenting and learning. If you have any more questions or run into more issues, feel free to ask. Happy coding!
Top 10 Tips and Tricks with Tailwind CSS
23:45
developedbyed
Рет қаралды 87 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 19 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,1 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 30 МЛН
How to create modal by using Tailwind CSS?
22:26
AyyazTech
Рет қаралды 6 М.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 148 М.
Theming Tailwind with CSS Variables
27:24
Tailwind Labs
Рет қаралды 121 М.
Useful & Responsive Layouts, no Media Queries required
11:03
Kevin Powell
Рет қаралды 173 М.
React Popup Modal With Tailwind CSS
15:44
Full Stack Niraj
Рет қаралды 34 М.
Create Crazy 3D Image Slider Effects Using CSS Only
14:07
Lun Dev
Рет қаралды 215 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 931 М.
Styling Forms with Tailwind CSS
17:25
Tailwind Labs
Рет қаралды 140 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 558 М.
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 138 М.
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 164 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН