daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.onresize = function(){
  2.     var img = document.getElementById('fullsize');
  3.     img.style.width = "100%";
  4. };
  5.    
  6. <div id="gallery" style="width: 100%">
  7.                 <img src="images/fullsize.jpg" alt="" id="fullsize" />
  8.                 <a href="#" id="prev">prev</a>
  9.                 <a href="#" id="next">next</a>
  10.             </div>
  11.    
  12. img {
  13.     max-width: 100%;
  14.     height: auto;
  15.     width: auto9; /* ie8 */
  16. }
  17.    
  18. <div style="max-width:500px;">
  19.     <img src="..." />
  20. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top