I’m currently using WordPress, Gutenberg, Astra and Starter Template.
Here is the link to the header banner I’m currently working. https://webmasterseoph.com/
When you shrink the page the header banner does not shrink also.
I tried adding this codes to starter template CSS.
.img {
width: 100%;
height: auto;
}
Are the codes above correct?
Where is the right file to insert this CSS codes?
As far as I can see, your header image does not have a class named img so the above code won’t affect it.
Applied directly to an img element by writing as:-
img {
width: 100%;
height: auto;
}
…Would make a responsive image, however that wouldn’t work correctly in the context of your header.
To be honest, it is a very simple header design which would be very simple to code in a responsive way. But the theme has grossly over-complicated things with way too many nested elements and too much over-complex CSS. This has turned something very simple into something quite difficult.