How to make images take up 100% of the browser

1

I would like to know how I can have a 'Gallery' like this: (HTML and CSS)

link (In the OUR WOKS area)

I wanted it to be the same regardless of the resolution or zoom (same as the example), that the gallery is always occupying 100% of the screen. If possible put the code.

    
asked by anonymous 26.07.2014 / 19:32

1 answer

4

I put the Css in the same file as the html to make it easier to see You can do so with an image or in the background of the Body for both the method is the same.

 <html>
  <head>
   <style>
      .Imagem{
                    width: 100%;
                    height : 100%;
                    position: absolute;
                    top: 0;
                    left: 0;        
             }
    </style>
    </head>
   <body>
     <img src = "download.jpg" class = "Imagem"></img>
   </body> 
 </html>
    
28.07.2014 / 21:25