

Photoshop lets us know that the width and height values of the image are currently linked together by displaying a linked icon to the right of the values:īy enlarging the image, I've managed to return it to its original size, but when we compare the quality with that of the original, the enlarged version clearly doesn't look as good. Normally, you wouldn't change the width of a photo without changing the height as well, otherwise things will look distorted. That's because by default, Photoshop keeps the original aspect ratio of the image intact when you resize it, which is usually what you want. In other words, if you try to change the value for the width of your image, the height will change along with it. You'll notice, unless you've changed the default settings, that when you enter in a new Width or Height value, the other value changes automatically. When you're done, click the OK button and Photoshop will resize the image to whatever percent value you entered. Just double-click inside the Width or Height value box and type in a new percentage. Resizing the image using a percentage is done the same way as if you were using pixel values. Once you've chosen percent as your measurement type, the Pixel Dimensions section will display the width and height of your image as a percentage rather than a pixel value. Read more on media queries here.Changing the measurement type from pixels to percent. It may be beneficial to set the height as a percentage value, and then set a max-height value in pixels, to stop the header getting too large.

One basic way in which you good approach this is by using simple media queries to change the width / height of the image depending on the screen resolution. As you asked for a CSS solution, I'll start with that first. There are a few different ways in which you could make the header image on all screens. If it looks too big, make it smaller, it is all just designers preference.

If you think it looks good, and doesn't take up too much space on the user's browser, then use it. Question one seems a bit trivial, as you stated, there isn't one "default" size, this should be decided on a case by case basis.
