diff --git a/responsiveslides.js b/responsiveslides.js
index a6b6838..80d097d 100644
--- a/responsiveslides.js
+++ b/responsiveslides.js
@@ -114,7 +114,7 @@
// Add max-width and classes
$this.addClass(namespace + " " + namespaceIdx);
if (options && options.maxwidth) {
- $this.css("max-width", settings.maxwidth);
+ $this.css("max-width", parseFloat(settings.maxwidth));
}
// Hide all slides, then show first one
diff --git a/responsiveslides.min.js b/responsiveslides.min.js
index 8e15123..93b17f1 100644
--- a/responsiveslides.min.js
+++ b/responsiveslides.min.js
@@ -1,6 +1,6 @@
/*! http://responsive-slides.viljamis.com v1.23 by @viljamis */
(function(c,B,t){c.fn.responsiveSlides=function(e){var b=c.extend({auto:!0,speed:1E3,timeout:4E3,pager:!1,nav:!1,prevText:"Previous",nextText:"Next",maxwidth:"",controls:"",namespace:"rslides"},e);return this.each(function(){t++;var d=c(this),l,o,p,u,m,k=0,f=d.children(),v=f.size(),w=parseFloat(b.speed),g=b.namespace,h=g+t,i=g+"_nav "+h+"_nav",q=g+"_here",j=h+"_on",x=h+"_s",n=c("
"),y={"float":"left",position:"relative"},C={"float":"none",position:"absolute"},r=
-function(a){d.trigger(g+"-before");f.stop().fadeOut(w,function(){c(this).removeClass(j).css(C)}).eq(a).fadeIn(w,function(){c(this).addClass(j).css(y).trigger(g+"-after");k=a})};if(1"+a+""});n.append(s);m=n.find("a");e.controls?c(b.controls).append(n):d.after(n);
-l=function(a){m.closest("li").removeClass(q).eq(a).addClass(q)}}!0===b.auto&&(o=function(){u=setInterval(function(){var a=k+1"+b.prevText+""+
-b.nextText+"";e.controls?c(b.controls).append(i):d.after(i);var i=c("."+h+"_nav"),z=c("."+h+"_nav.prev");i.bind("click",function(a){a.preventDefault();if(!c("."+j+":animated").length){var d=f.index(c("."+j)),a=d-1,d=d+1parseFloat(b.maxwidth)&&d.css("width",parseFloat(b.maxwidth))};A();c(B).bind("resize",function(){A()})}})}})(jQuery,
-this,0);
\ No newline at end of file
+function(a){d.trigger(g+"-before");f.stop().fadeOut(w,function(){c(this).removeClass(j).css(C)}).eq(a).fadeIn(w,function(){c(this).addClass(j).css(y).trigger(g+"-after");k=a})};if(1"+a+""});n.append(s);m=n.find("a");e.controls?c(b.controls).append(n):
+d.after(n);l=function(a){m.closest("li").removeClass(q).eq(a).addClass(q)}}!0===b.auto&&(o=function(){u=setInterval(function(){var a=k+1"+b.prevText+""+b.nextText+"";e.controls?c(b.controls).append(i):d.after(i);var i=c("."+h+"_nav"),z=c("."+h+"_nav.prev");i.bind("click",function(a){a.preventDefault();if(!c("."+j+":animated").length){var d=f.index(c("."+j)),a=d-1,d=d+1parseFloat(b.maxwidth)&&d.css("width",parseFloat(b.maxwidth))};A();c(B).bind("resize",
+function(){A()})}})}})(jQuery,this,0);
\ No newline at end of file