11
submitted 3 days ago* (last edited 3 days ago) by MaggotInfested@lemmy.dbzer0.com to c/css@programming.dev

Making a site JavaScript-less with bootstrap but the CSS is kicking my ass- I do the code directly as it is meant to be, then I try to add one thing and it breaks. I'm gripping on w3schools for dear life and I just can't seem to wrap my head around anything other than the basics. CSS is pain ESPECIALLY when I'm doing it on an external sheet. (I don't want to do internal because all the text gets overwhelming.) Anyone have some ideas to help with this?

Edit: So I realized the browser tool thing is really easy for visuals + that BOOTSTRAP IS INSANELY VAST. For just about every CSS element theirs another 1.5k sub rules which is great for getting specific but not great when you are basically creating a rule for a already ruled element that you have no way of finding easily. Bootstrap is just a functionality CSS sheet I think and not the equivalent to a HTML DLC

(Image is my CSS sheet compared to the crazy amount of CSS sub sheets that exist in bootstrap. My measly little 16 rules look pathetic)

you are viewing a single comment's thread
view the rest of the comments
[-] m4m4m4m4@lemmy.world 4 points 3 days ago

Bootstrap is highly opinionated imho, i.e. it's great if you want to do something that lies within its style or else you'll have a hard time. If that's your case, and of course if this is a possibility, you can consider moving to another framework - say, Tailwind.

[-] MaggotInfested@lemmy.dbzer0.com 1 points 3 days ago

I like that it has built in mobile friendliness and a way to just make text fit buy filling in and auto adding the padding needed. What is tailwind?

[-] m4m4m4m4@lemmy.world 0 points 3 days ago
[-] spartanatreyu@programming.dev 1 points 1 day ago

Tailwind leads to just as much class soup as bootstrap, so avoid it all together.

Your website shouldn't need classes everywhere to work. Use something that sets proper defaults then only use classes where they're needed. Like picocss or purecss.

this post was submitted on 05 Oct 2024
11 points (100.0% liked)

CSS

476 readers
1 users here now

founded 1 year ago
MODERATORS