I have the following HTML/CSS code which results in two images Logo.jpeg and Banner1.jpg to be on the same line, one after the other. I would like to put space between the two, resulting Banner1.jpg to be centered, while Logo.jpeg should stay aligned to the left. Tried several solutions like margin-left/margin-right, padding, align and others with no avail.
HTML
.logo h1 {
font-size: 40px;
margin: 20px 0;font-weight: 400;
display: inline-block;
}
.logo h2 {
font-size: 40px;
margin: 20px 0;font-weight: 400;
display: inline-block;
}
<div class="site-branding-area">
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="logo">
<h1><a href="./"><img src="img/Logo.jpeg" height="725" width="200"></a></h1>
<h2><a href="XXX"><img src="img/Banner1.jpg" height="150" width="350"></a></h1>
</div>
</div>
Can anyone help me understand how to fix it so to have Logo.jpeg align to the left and Banner1.jpg centered? Thanks, take the chance to wish you a good day, Michele