jeśli wysokość obrazka większa niż szeokość, to jakiś inny styl,
jak zrobić?
co z poniższym kodem jest nie tak, że nie działa?
jak go zapisać prościej?
$(document).ready(function(){ var theHeight = $(".image img").height() > $(".image img").width(); var theWidth = $(".image img").height() < $(".image img").width(); alert(theHeight); if ($(".image img") == theHeight) { $(this).css({"border":"0px #000 solid"}); } if ($(".image img") == theWidth) { $(this).css({"border":"3px #000 solid"}); } });