My header consists of a picture, which means I'm unable to use percentages for sizing. The header needs to have a fixed width and height. When I resize the window to make it smaller, the content on the page adjusts correctly, but the header remains the same size. This causes the header to overflow beyond the borders of the page, creating a scroll bar at the bottom.
Is there a way to crop or cut the header so that its height is always fixed, and the width automatically corresponds to the fixed height? Can the overflow of the header beyond the page's borders be hidden?
I am aware that I can use
body {
overflow-x:hidden;
}
but I don't feel like that's a satisfactory solution. Do you have any other suggestions?
Thank you!