user386207
user386207

Reputation: 17

Why insert a double <span> tag in <button>?

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

Answers (2)

Lekensteyn
Lekensteyn

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

&#193;lvaro Gonz&#225;lez
&#193;lvaro Gonz&#225;lez

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

Related Questions