set the width and height of jquery popup large images -


i have used jquery popup gallery website want set resizable image fixed height , width. cant exact code here code gallery

  <script type="text/javascript" src="javascripts/top_up-min.js"></script> <script type="text/javascript">   topup.addpresets({     "#images a": {       fixed: 0,       group: "images",       modal: 0,       title: "gallery"      },      "#movies": {       resizable: 0     }   }); </script> 

and code images in body part

  <span id="images">         <a href="images/photos/1.jpg" toptions="overlayclose = 1">           <img src="images/thumbnails/1.jpg"/>         </a>          <a href="images/photos/1.jpg" toptions="overlayclose = 1">           <img src="images/thumbnails/1.jpg"/>         </a>        </span> 

image dimensions can controlled through css. if using jquery library display images, there associated stylesheet can edit set displayed image dimensions. or there may option set displayed image width in initializer. alternative overwrite styles set library.

in custom stylesheet try following, assuming fixed width of 300px,

img{width:300px !important;} 

or

a img{width:300px !important;} 

or

#images img{width:300px !important;} 

or

a img{width:300px !important;} 

or

#images img{width:300px !important;} 

adding !important ensures style used, should overwrite other styles defined library using. click more info on !important.

hope helps


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -