The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

If image width is larger than X, add css

2 posters

Go down

If image width is larger than X, add css Empty If image width is larger than X, add css

Post by Ahmed.K 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");
   }
});
avatar
Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

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

Post by Sir. Mayo 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
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