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
Give this a try:
<h2 style="display:inline-block; _display:inline;
background-color:#0099CC;">Here is my header with a background color
</h2>
It worked okay from my end on IE6, IE7 and FF3.
-Tim
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Tim Offenstein *** Campus Accessibility Liaison *** (217) 244-2700
CITES Departmental Services *** www.uiuc.edu/goto/offenstein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************