html5 - CSS3 picture full screen -
how can make full screen picture on website ?? try lots of methods, still can't make right.
i did :
width: 100%; height: 100%; text-align: center; background:url(images/top.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;
and well, alright make full width have insert lots of text or
change height of picture...
than try :
width: 100%; height: 100%; text-align: center; position: absolute; background:url(images/top.png); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-attachment: fixed; min-width: 100%; min-height: 100%;
this method works perfect, when add second div under first one, second div on first one...
so question is, how can make full screen picture on website ! want have 100% height , 100% width, , when add second div go under first one.
thanks help.
{ position: absolute; background-image: url(images/top.png); background-attachment: fixed; top: 0px; left: 0px; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; z-index: value; }
the z-index property specifies stack order of element.
Comments
Post a Comment