The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

If image width is larger than X, add css

View previous topic View next topic Go down

If image width is larger than X, add css

Post by Ahmed.K on September 5th 2013, 6:39 am


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

Back to top Go down

Re: If image width is larger than X, add css

Post by Sir. Mayo on September 5th 2013, 12:35 pm

Where did you add that code?
That's a Java script code add it to javascrip management and tick in all pages!

Sir. Mayo
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

http://sir-mayo.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum