B.54. layer-background-image
Longtime users of CSS Positioning will be familiar with Netscape 4's unwelcome penchant for leaving a space between the content of an absolute-positioned block and its border. This three-pixel space is in addition to the padding, and is left transparent even if the block was assigned a background.
This little-known nonstandard property, which works only in Netscape 4, sets the background image of both the main background area as well as that three-pixel space! Although there is still no way to get rid of that three-pixel space, a browser-specific style sheet can reduce the padding by three pixels to achieve the desired rendering, as long as the intended padding of the box is at least 3 pixels!
If background-image ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access