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?
Child Box Centering
Page: 1
Author | Post |
---|---|
smarten
|
#1 Tue Nov 25, 2008 10:53 pm
|
Guest | |
#2 Wed Nov 26, 2008 1:53 am
|
|
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
|
#3 Wed Nov 26, 2008 4:13 am
|
Guest |
Ah, cool. Thanks
|
Page: 1