Note that there are some explanatory texts on larger screens.

plurals
  1. POResize the images?
    primarykey
    data
    text
    <p>I have some images:</p> <pre><code>&lt;div id="slider" class="nivoSlider"&gt; &lt;img src="images/1.jpg" alt="" /&gt; &lt;img src="images/2.jpg" alt="" /&gt; &lt;img src="images/3.jpg" alt="" /&gt; &lt;img src="images/4.jpg" alt="" /&gt; &lt;img src="images/5.jpg" alt="" /&gt; &lt;/div&gt; </code></pre> <p>Basically they have size around 600x450. And I applied CSS to them.</p> <pre><code>.nivoSlider img { height: 450px; width: 600px; margin-left: 25px; } </code></pre> <p>I wanted to make a slide show then I selected nivoSlider plugin.</p> <pre><code>$(document).ready(function () { $('#slider').nivoSlider({ effect: 'random', // Specify sets like: 'fold,fade,sliceDown' slices: 15, // For slice animations boxCols: 8, // For box animations boxRows: 4, // For box animations animSpeed: 300, // Slide transition speed pauseTime: 3000, // How long each slide will show startSlide: 0, // Set starting Slide (0 index) directionNav: true, // Next &amp; Prev navigation controlNav: true, // 1,2,3... navigation controlNavThumbs: false, // Use thumbnails for Control Nav pauseOnHover: true, // Stop animation while hovering manualAdvance: false, // Force manual transitions prevText: '&lt;&lt;', // Prev directionNav text nextText: '&gt;&gt;', // Next directionNav text randomStart: false, // Start on a random slide beforeChange: function () { }, // Triggers before a slide transition afterChange: function () { }, // Triggers after a slide transition slideshowEnd: function () { }, // Triggers after all slides have been shown lastSlide: function () { }, // Triggers when last slide is shown afterLoad: function () { } // Triggers when slider has loaded }); </code></pre> <p>My question is how to change the size dynamically when browser width changing?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload