I have a requirement where the same page can be used by different firms(our clients) and the image on the navbar must be their logo. Now, the logos that I am testing with are all of different size and dimensions.
I tried some ways like setting max height, max width etc, but since the logos themselves come in different sizes with height-width ratio different (say some are square an some are long names with an overall rectangle dimension like 380*200 ).
Now I need to somehow maintain this and still fit these images. Using css or HTML tags to achieve this. I am currently working with something like this:
<img src="<?php echo $imageUrl?>" style="max-height: 180px;max-width: 40px"></a>