Previous Message
Next Message

background images and borders

Sent by Jukka K. Korpela on 26 January 2004 16:04


On Mon, 26 Jan 2004, Scott Blanchard wrote:

> Is there any way to force

CSS does not force anything, except in a user style sheet in a
well-behaving browser.

> the background image of an element to show through
> the element's border???

I'm not sure why you would want to achieve that, since that would
effectively just make the border disappear and the element take wider
dimensions. So why don't you simply set width and height suitably?

You can set border-color: transparent, but a) this is not supported by IE,
and b) it makes the background of the enclosing element shine thru when it
works, since the background image, by definition, affects only the
element's content and padding, not the border.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: