Replacing illegal align attributes with correct CSS styles