private void StackX(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++;
InitHorizontalCss(child);
Spacing border = Css.GetPixelBorder(child);
position += ChildMargin.Left + (isFirst ? 0 : border.Left);
child.CSS(cssAttribute, position + Css.Px);
position += child.GetWidth() + ChildMargin.Right + (isLast ? 0 : border.Right);
}
}