Doug, This should work, but untested: if($("div#sidebar2").children(".plugin").size() != 0{
$("div#sidebar2").css('width',160); $("div#content")css('marginRight', 170); } On 7/28/07, duggoff <[EMAIL PROTECTED]> wrote: > > > How would I turn this pseudocode into jquery? > > if div#sidebar2 contains div.plugin { > div#sidebar2 width = 160px > div#content margin-right = 170px > } > > I've been at this for a couple hours and I can't figure it out, so any > help is really appreciated. > > Thanks, > > Doug > > -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com