If image width is larger than X, add css

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!
avatar
Sir. Mayo
Forumember

Male Posts : 980
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

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

Back to top Go down

Back to top


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