or you could just do <h2><span class="hello">Your Header Text Here</span></h2>. And in your CSS, .hello {background-color: color;}
On Mon, Dec 1, 2008 at 2:16 PM, Сергей Кириченко <[EMAIL PROTECTED]>wrote: > 1. float:left > 2. position:absolute > 3.insert span with bg into H2 > and non standart trick > inline-block for all and {display:inline; zoom:1}for < lte IE 7 > > > Andrew famiano пишет: > > I'm trying to set a background color on a <h2>. I want the background to >> be the same width as the header. Since inline-block isn't supported by all >> browsers, is there another trick in doing this? >> >> Thanks >> >> ******************************************************************* >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: [EMAIL PROTECTED] >> ******************************************************************* >> > > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* > > -- Brett P. ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************