Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
i need to display my image completely
but the below css not displaying completely only partial not fully

#supersized {  display:block; position:fixed; left:0; top:0; overflow:hidden; z-index:-999; height:100%; width:100%; }


i am stuck in my project please help me out
Posted
Comments
[no name] 9-Apr-14 8:43am    
once put :- position:absolute;

Hey,
you can try below css.

C#
background: url(images/bg.jpg) no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
 
Share this answer
 
please remove z-index:-999; from your code
 
Share this answer
 
Hi Shakeer,

Try this css.

CSS
#supersized{
   width:100%;
   min-height:100%;
   display:block;
   position:absolute;
   overflow:hidden;
}

to get full screen (browser screen) image add overflow:hidden in <body> and
in which you included <img> tag.

and just try this Jquery Plugin. may be it will help you.

http://srobbin.com/jquery-plugins/backstretch/[^]

Good Luck
 
Share this answer
 
v3
hey just try to Change(increase) the Image Box size .......it will work fine...
 
Share this answer
 
Comments
shakeer mp 9-Apr-14 7:59am    
not in image box i have used with javascript for sliding images
so i am able to use with this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900