Currently, I am working with pictograms and I am looking to showcase all the pictograms that the user has in both grid list and grid tiles formats. However, the challenge lies in the fact that the aspect ratio of the pictograms varies significantly depending on the specific image. https://i.sstatic.net/RdleM.png To address this issue, I am currently using ng2-img-max to resize the pictograms while preserving their original ratio. While I am fairly new to CSS, I have attempted some solutions like setting max-width to 80% and experimenting with different approaches. Nevertheless, I believe that the optimal solution would involve adding white borders to the pictograms to standardize them to a 300px*300px dimension, making it easier to manage their display.