wikipedia.org/wiki/Portable_Network_Graphics
Relative Image Paths
Unlike normal background images in CSS, the path to the image file is relative to
the HTML page location, not the CSS file. For that reason, it??™s safer to use an absolute
address for the image, so that no conflicts arise.
For the filter to work, the element in question must have a layout, which can be
achieved most simply by setting a dimension. See The Internet Explorer hasLayout
Property (p. 158) for more information on IE and layout, and other properties that
cause an element to gain a layout. It??™s also important to note that IE shouldn??™t have
a background image specified, as that would conflict with the filter and ruin the
effect. Therefore, when you??™re using the filter, you??™ll need to use some other sort of
filter, such as conditional comments (p. 394), or a hack like the one below.
Vendor-specific Properties
383 Vendor-specific Properties
Here??™s an example that uses the star selector hack (p. 402) to supply the required
declarations to IE6 and under (IE7 will ignore the rule):
#outer{
width: 796px;
margin: auto;
background: url(images/transparent-border.
Pages:
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554