dynamically inject style based on container width