Yeah, but then the foreground div is still transparent. The website will 'shine' through.
On Thu, May 29, 2008 at 4:44 PM, malsup <[EMAIL PROTECTED]> wrote: > > > The background div has to be positioned absolute, because it overlays the > > actual site "beneath" it. > > If you do that with your example, the foreground div will also be > > transparent. > > I see what you mean now. With the way your markup is structured there > is no way for the corner plugin to figure out what the right color is > for the corners. It walks the ancestor tree looking for an element > that has a background color defined. But you should be able to > achieve the same look by nesting the divs like this: > > http://www.malsup.com/jquery/corner/test4.html?v2 > > Mike >