News for hackers. Stuff that matters.

How to learn bootstrap(CSS framework)?

Most people say learn by starting a project, but how do you learn like that? It irks me. I am watching brad traversy's video

https://www.youtube.com/watch?v=4sosXZsdy-s&t=460s

and I get nothing till now.

I know html,css and js properly. How do I learn bootstrap now?

( 8 comments | 2 points | on HN )
Re:How to learn bootstrap(CSS framework)? by matthewwolfe on Thursday December 22, 2022 @10:59PM (#34102208)
If you actually do know html, css, and HTML properly, then looking at the bootstrap documentation is going to be your best bet. It is full of examples with code snippets and examples of what that code produces. Bootstrap is a very class based library, there isn’t a lot of complexity to it other than structuring your HTML correctly with the correct class names.
Re:How to learn bootstrap(CSS framework)? by schappim on Friday December 23, 2022 @03:19AM (#34103463)
Honestly, these days you'd be better off learning Tailwind CSS[1]. I previously used Bootstrap, but Tailwind CSS is so much nicer.

I prefer Tailwind CSS over Bootstrap because it is a utility-first framework, allowing me to style elements directly with low-level utility classes, rather than relying on the predefined styles and components of the framework.

The Tailwind folks have done a good job making it highly customisable. Ultimately, it comes down to personal preference and needs.

[1] https://tailwindcss.com/

Re:How to learn bootstrap(CSS framework)? by twoquestions on Friday December 23, 2022 @08:46AM (#34105716)
I'd very much recommend also using DaisyUI, it gives a lot of sensible defaults for buttons and such that Tailwind forces you to make decisions on. https://daisyui.com/

As for OP's question, just play with it! Futz with different classes and see what happens! A structured approach I don't think will work terribly well.

Re:How to learn bootstrap(CSS framework)? by _448 on Friday December 23, 2022 @09:15AM (#34105997)
So how is daisyui different from bootstrap?
Re:How to learn bootstrap(CSS framework)? by solardev on Monday December 26, 2022 @12:18AM (#34134819)
They solve different problems though. Tailwind is great if you have a design system you have to use, but bootstrap gives you more out of the box defaults to use if you don't want to think about that sort of stuff.
Re:How to learn bootstrap(CSS framework)? by AjJi on Friday December 23, 2022 @09:35AM (#34106233)
Start a project, learn as you go, you don't have to learn everything, you don't need to.
Re:How to learn bootstrap(CSS framework)? by WhiteBlueSkies on Friday December 23, 2022 @02:09PM (#34109503)
Uhm.. I really don't wanna sound negative but I don't think you know CSS as well as you think you do.

Bootstrap is trivial for people that know CSS.

Re:How to learn bootstrap(CSS framework)? by solardev on Monday December 26, 2022 @12:20AM (#34134826)
Make a sample project with a predefined goal, like a basic marketing landing page. Get it to look right on phone, tablet, and computer. That should only take a few hours.