I am facing an issue with the alignment of my header logo on a webpage. The body of the page has white space on each side, and I want the header logo to be aligned on the left so that it starts vertically at the same point as the body regardless of the window size. However, I'm struggling to achieve this because the body is centered with a percentage width, while the header logo is naturally in the middle position. Floating the logo to the left and adding margin or padding does not make it responsive for larger screens than my laptop.
Here is the CSS code for my container:
.td-container {
width: 95%;
max-width: 1350px;
margin-right: auto;
margin-left: auto;
}
For the header so far, I have tried:
.td-main-logo img {
max-width: 1350px;
margin-right: auto;
margin-left: auto;
}
and:
.td-main-logo img {
max-width: 1350px;
margin-left: 6%;
}