If image width is larger than X, add css
2 posters
Page 1 of 1
If image width is larger than X, add css
Why this code doesn't work?
$(window).load(function () {
var image = $('.postbody img');
if (image.width()>230) {
$('.postbody img').css("display","none");
}
});
Ahmed.K- Forumember
- Posts : 349
Reputation : 4
Language : English
Re: If image width is larger than X, add css
Where did you add that code?
That's a Java script code add it to javascrip management and tick in all pages!
That's a Java script code add it to javascrip management and tick in all pages!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum