[jQuery] Re: CSS top seems ignored by blockUI

2009-03-06 Thread Chuck
Nope, ignored. And it's pretty darn obviously why once I stepped through the code! The author calls "center" on the layer containing the message: function center(el) { var p = el.parentNode, s = el.style; var l = ((p.offsetWidth - el.offsetWidth)/2) - sz (p,'borderLeftWidth'); var t

[jQuery] Re: CSS top seems ignored by blockUI

2009-03-06 Thread Mike Alsup
Try setting the 'centerY' property to false: $.blockUI({ css: {top: '150px', width: '40%', padding: '2px', border: 'none'}, centerY: false }); On Mar 6, 11:45 am, Chuck wrote: > Hi, > > I'm passing to blockUI an array of options: > >         {top: '150px', width: '40%', padding: '2px',

[jQuery] Re: CSS top seems ignored by blockUI

2009-03-06 Thread ryan.j
also, semi-colons ;) On Mar 6, 4:48 pm, "ryan.j" wrote: > make it !important > > or possibly even try a negative margin-top if all else fails. > > On Mar 6, 4:45 pm, Chuck wrote: > > > Hi, > > > I'm passing to blockUI an array of options: > > >         {top: '150px', width: '40%', padding: '2px

[jQuery] Re: CSS top seems ignored by blockUI

2009-03-06 Thread ryan.j
make it !important or possibly even try a negative margin-top if all else fails. On Mar 6, 4:45 pm, Chuck wrote: > Hi, > > I'm passing to blockUI an array of options: > >         {top: '150px', width: '40%', padding: '2px', border: 'none'}; > > And top appears to be completed ignored!  The othe