MyBB Community Forums

Full Version: IMG max-width
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys how do I set maximum width for an image here: http://letsforum.com/Thread-IMG-max-width-test
I use
.post_content img {
    max-width: 620px !important;
}

but it doesn't seem to work in the link above please help.
you can try it like this
[ID^="pid"] img {
    max-width: 620px !important;
}
should I replace my code with yours? And your code goes into global.css?
^ you can keep both if required. .post_content's properties are applicable on regular posts
Edit: yes, it can be added to bottom of global.css
Damn it really works amazing that you know this. Listen this function won't mess other settings?
^ well, it can also affect images on regular posts. not more than that!
Yeah it looks like also sets max-width to post images thanks .M. you are awesome man I don't know you but I think I love you Wink