html - Scale Background only in width -


i want background scale in width not in height.

i got following code now.

background: url(images/background.jpg) no-repeat center center fixed;  -webkit-background-size: cover;  -moz-background-size: cover; -o-background-size: cover; background-size: cover; 

with code backgroundimage scales whole thing want scale in width. have solution?

greetings

instead of cover, can try this.

background-size: 100% $image_height; 

where $image_height height of background working with.

jsfiddle


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -