Can I create a rubber container for images with different sizes?

Has the functionality of displaying a company logo, but when the company is changing, and changing the logo, and so it was that the logos are different sizes and the second logo is floating, but if you ask "padding" or "margin" for the 2nd, then floats 1st logo.
Please tell me, is there a way to fix this? To make the center of the 2nd logo, but below the 1st were exactly the same?
March 12th 20 at 08:05
1 answer
March 12th 20 at 08:07
See the css property nth-child
.company-logo:nth-child(2) {margin-left:10px;}

Find more questions by tags HTMLCSS