Hello CSS guru's of stackoverflow. I am stuck on a problem and I think perhaps it is just not possible with CSS.
I want to combine these two rules and apply them both to the same image:
1) dynamically scale image as browser size changes
#main-graphic {
width: 100%;
position: absolute;
top: 0;
left: 0;
}
2) center image and crop sides of image as browser gets smaller
#main-graphic {
width: 2560px;
height: 100%;
margin-left: -1280px;
left: 50%;
position: relative;
}
But how do i do this with just CSS? Or is that not possible?