Code: Select all
max-width: 100%;
Code: Select all
img {
border-width: 0;
max-width: 100%;
}
not new, been around quite a while and should work with all current browsers.Robotics Guy wrote:Is max-width a new css property? I don't think I've ever seen that before. Does it work with all the browsers?
Thanks
Im sorry to bringing this topic up, I'm using this on version 3.0.8 and my theme is a bit messed up. New topic button is messed up and pictures in users online and stats are overlapped by text. However, pictures are resised and plugin does his job.Kevin Clark wrote:There's an even easier one
Open common.css in the theme folder and add this code to the "img" class
so, the whole thing should be...Code: Select all
max-width: 100%;
Then refresh the theme in the styles tabCode: Select all
img { border-width: 0; max-width: 100%; }
Code: Select all
.post .content img {
max-width: 400px;
max-height: 400px;
}
Changed common.css ike that and uploaded common.css to the site, emptied the cache, but when I checked with Firebug max-with: 100%; was not present. I had to go and change directly in database phpbb_styles_theme and add this line there. Then empty the cache and it was working very well.Kevin Clark wrote:Then refresh the theme in the styles tabCode: Select all
img { border-width: 0; max-width: 100%; }
As the post instructs, you need to Refresh the Theme.Slackervaara wrote:Changed common.css ike that and uploaded common.css to the site, emptied the cache,