Child Box Centering

Page: 1

Author Post
smarten
Guest
Hi Again,

I noticed that child float boxes don't center on either the screen, or the parent box, when they are smaller than the parent. Is this intended behaviour?
Administrator
Registered: Aug 2008
Posts: 3382
Yes, intended behaviour.

When floatbox child boxes were first invented they occupied the default centered position. It looked kinda stupid with one box right smack in the center of another box. So when the child box is smaller than the parent, the child's top-left corner is displaced half way towards the parent's top-left corner.

You can adjust positioning with the boxLeft and boxTop options if you like.
smarten
Guest
Ah, cool. Thanks

Page: 1