Domanda

I'm working on a website that can be found there: http://odesktestanswers2013.com/Metareviewer/

I'm working on a 1920px wide monitor and I noticed on my girlfriend laptop (a 14inch mac with Safari) that the slider displays two black strips above and below the slider.

My sliders' pictures are 1920px but I thought they would just scale (and that I obviously wouldn't have those black strips).

Anybody knows where that's coming from ?

È stato utile?

Soluzione

The problem is with the background-size values that you have defined. THey are using a % of the container. If you change your background-size to cover and your background-position to center center is will fix your problem

.main-wraper-present2 {
    background: url("../images/unes/une[2].jpg") no-repeat scroll center center #000000;
    background-size: cover;
}

Altri suggerimenti

Try background-size: cover; on your .main-wraper-present and .main-wraper-present2.

EDIT: Browser support for background-size has grown of late, with the current versions of most popular browsers now supporting the property, including Firefox, Safari, Chrome, Internet Explorer and Opera.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top