more robust alignment for css formatting