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");


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

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

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