css - Background for html back that is fixed for the screen -


i'm working on basic html page , have background image bg.jpg. problem depending on screen size have , how many pixels screen has i'm not able view whole background image want.

how make background fixed can see whole background?

if mean full page background image can css3 background-size property

body {    background: url(bg.jpg) no-repeat center center fixed;    -webkit-background-size: cover;   -moz-background-size: cover;   -o-background-size: cover;   background-size: cover; } 

if need attach it, kinda fixed , shouldn't scrolled, use

background-attachment: fixed;  /* used in above css declaration using css short hand*/ 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -