Error

if element does't have style, it will throw an exception by trying to get textAlign