I'm trying to use the corner plugin (http://www.malsup.com/jquery/corner) to create rounded corners on a div. First I display a div that covers the whole page and has a black, transparent background. Then I show another div, white background, centered on the screen. So it's a kind of popup. The problem is that when I just use $(...).corner(), nothing happens. But if I color the corners with $(...).corner("cc:#000"), I can see the corner, but it's black. Is there something wrong with the following code?
$("#overlay_bg").width($(document).width()); $("#overlay_bg").height($(document).height()); $("#overlay_fg").width(400); $("#overlay_fg").center(); $("#overlay_fg").corner(); $("#overlay_bg").show(); $("#overlay_fg").slideDown("slow"); Thanks for checking!