Reputation: 17
Sometimes, I found too many people like to insert a <span> tag in a <button> tag. Sometimes, they place two <span> tags. I want to know, why do they do this?
Upvotes: 0
Views: 1365
Reputation: 66395
I've seen this with <div>
. That's done for styling (double borders), but it's also done to handle IE bugs (box-border model bug).
Upvotes: 0
Reputation: 146390
CSS is supposed to allow separation between content and style. Unluckily, when you need a complex design you often need to alter your HTML markup so you can apply the necessary CSS rules.
Upvotes: 1