Added position information in styles tag for every element in the template