I'm calling into question of how I approach trying to learn how to design a web page (a SPA in my case). So I look up how to accomplish X in CSS/HTML. Of course I find an abundance of examples with code snippets. Unfortunately I cannot use them, not even a single character due to copyright. If I'm lucky, it's on a website which states that "all answers/solutions are under CC-BY-SA". I worry that what I'm learning is unusable. I'm afraid to use the same approach, properties, or even concepts as that can lead me into hot water.
Just reading these posts bias my perspective and will push me to use copyrighted combinations of properties and values. Though I've no idea of any other solution! What if it isn't possible to do x any other way?
My question is, how can I learn this stuff, or "how to do x?" without fretting over breaking the law?
And no I absolutely cannot afford a lawyer! This makes me doubt whether I should continue my efforts at all.