CSS: resolution problem
Posted
by Syom
on Stack Overflow
See other posts from Stack Overflow
or by Syom
Published on 2010-04-01T16:37:36Z
Indexed on
2010/04/01
16:43 UTC
Read the original article
Hit count: 556
my site has three div elements, header, content and footer. i have a picture in header, and i want, that under big resolutions too it looks nice. so i take big image, with 1800px width. by so it looks nice in resolution of 1800, but now, in small resolutions(for example 1024), it shows only first 1024px of my picture, but i want it to show the center 1024px of picture. so is there any way, to set the backgound-image very big, but in small resolutions show center part of image?
#header
{
background-image:url(../img/bg_header1.jpg);
background-repeat:no-repeat;
height:357px;
width:100%;
}
thanks in advance
© Stack Overflow or respective owner