Andy3000's avatar

Andy3000 wrote a reply+100 XP

1d ago

At what point do you stop patching CSS and just rebuild properly?

I'm old school, I write CSS by hand. I'm familiar with WordPress, but don't have a lot of experience. WordPress gives every tag it's own custom CSS class to avoid conflicts, it's a technique, not one I would use.

Using CSS descendant selector should fix the problem. You wrap each section in a div tag with a unique class and then make all the CSS for the section only apply to that section.

https://www.youtube.com/watch?v=Gtg2vnSPcQU

https://www.geeksforgeeks.org/css/what-is-descendant-selector-in-css/