private void StackY(ArrayList children, int position, string cssAttribute)
{
int index = 0;
foreach (jQueryObject child in children)
{
bool isFirst = index == 0;
bool isLast = index == children.Count - 1;
index++;
InitVerticalCss(child);
Spacing border = Css.GetPixelBorder(child);
position += ChildMargin.Top + (isFirst ? 0 : border.Top);
child.CSS(cssAttribute, position + Css.Px);
position += child.GetHeight() + ChildMargin.Bottom + (isLast ? 0 : border.Bottom);
}
}