I took [display:block;cursor: pointer;] out of the lower 3 div styles and put them both in the first div style cause all 3 styles use the same code. Is this good practice, or do you not recommend doing that?
I did answer your question - both versions are the worst bad practice imaginable and you should stop asking which of two humongous piles of stinky junk in your kitchen is the better one for sitting in to eat you recipe book for lunch (although if you were asking that rather than about the actual junk you are asking about then it wouldn’t be anywhere near as bad),
Nowhere near that recent. Even the dinosaurs considered such coding to be worse than bad. Perhaps the amoeba back when life first began might have accepted it not having the brains to know any better.
No one can just say, that’s fine, there’s nothing wrong with doing that, but there’s a better way to do it. That’s what I was looking for. But I guess no one knows how to say that.
No, no one can say that because it simply isn’t true. How many different people in how many different ways have to tell you that it is junk do there have to be for you to hear!!! What is the point in you asking for advice and then telling everyone else they’re wrong?
No, we can’t, because there is plenty wrong with it, which is what we’ve been endlessly trying to explain to you for the last fortnight.
To be clear: No, that’s not fine, there’s nothing plenty wrong with doing that, but there’s a better way to do it.
Unfortunately, you’ve shown not the slightest interest in learning the right way to do anything, so I don’t see much point in wasting more of my time writing good code for you to ignore. From the general level of frustration indicated by others who are still bothering to read your threads (and I know many have given up), you might draw the conclusion that we all feel pretty much the same.