Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Make header image scale? Re: Make header image scale?

#102464
snillor
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.