There is a comprehensive list (with examples) of css 'shrink-to-fit'
solutions listed here:
http://www.brunildo.org/test/shrink-to-fit.html
HTH
cal.
--
Cal Wilson
[EMAIL PROTECTED]
Phone: 0404 449 464
Web: http://oxygenkiosk.com
On 02/12/2008, at 6:54 AM, Brett Patterson wrote:
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]
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************