I want to give bgcolor to the th attribute only with width 70%.
Header is like “Mega Event Offer”. I want to give background color to that only. But it’s width is big. SO it is exceeding the heading also.. Can we do it? I googled.. But no use..
Any idea?
I want to give bgcolor to the th attribute only with width 70%. Header
Share
Not sure I fully understand the problem here, but given that you want to apply the background only behind the text and not on the entire th-element, I guess you could wrap the text in a
span-element and apply the background-color to that instead of the entireth-element.Something like this:
Markup
CSS