javascript - i cant make div or any image 100% in html5/css3 -


earlier when put width , height 100% doesn't displays 100% instead 10 px margin come on 4 sides here's tried

 <html>     <head>       <style>      .cont img {         display: inline-block;         width :100%;         height : 100%;         margin:0;     padding:0;        }           </style>         </head>     <body>        <div class="cont">     <img src="img_5913-2.jpg" class="imgmy" name="imgmy">      </div>     </body> </html> 

what can make 100% in browser?

have @ code, set margin:0px on body tag

<html> <body style="margin:0px; "> <div style="background-color:red; width:100%;"> hello </div> </body> </html> 

Comments