Home › Forums › CSS › Make header image scale? › Re: Make header image scale?
May 7, 2012 at 9:22 pm
#102464
Member
Or you could keep the image in the markup (often done if it’s a logo that links to the HOME page) and style it to occupy a percent of it’s containing element. I’m doing that on a redesign for my art league’s website.
#header img { max-width: 80%; }
The height automatically scales in proportion to the width. Of course, this won’t work in those older browsers that don’t understand max-width.