Esto funciona muy bien:Ajuste min-width - jQuery
$(document).ready(function() {
var previewwidth = ($(window).width() - ($('.aside').width() + $('.results').width() + 110)) ;
$(".result-preview").width(previewwidth);
$("footer").text(previewwidth);
});
$(window).resize(function() {
var previewwidth = ($(window).width() - ($('.aside').width() + $('.results').width() + 110)) ;
$(".result-preview").width(previewwidth);
$("footer").text(previewwidth);
});
pero no estoy seguro de cómo configurar min y ancho máximo, por lo min-width a 338px y ancho máximo de 500 píxeles.
gracias!
¿Has probado hacer .css() para ancho máximo y mínimo ancho? Es decir $ ('. Foo'). Css ('min-width', '338px') – mikaelb
¿Es posible establecer los anchos mínimo y máximo en un archivo css y agregar la clase al elemento? –