News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Large Images In FireFox Not contained

Started by ninaudp, January 15, 2010, 11:23:56 PM

Previous topic - Next topic

ninaudp

Hi, SMF 2.0 is working great in IE, but in FireFox large images that are in a post, are doing this:
The image busts out of the main body of the forum, no horizontal scroll bar appears.


Is there a solution?
Thanks!

Kays

Hi, you can change the size of posted images in the Admin CP > Features and Options > Basic Features

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

ninaudp

Thank you! I tried that and it has no effect.

ninaudp

Internet Explorer is applies a scroll bar and works great
This is with the image size settings at 0 in the admin panel


Kays

Any sizes in put there will only take effect on new images posted or if a post is edited.

In css/index.css in the theme you are using look for:


/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
overflow: auto;
line-height: 1.4em;
padding: 0.1em 0;
}


And change overflow from auto to scroll.

If there's no change, Ctrl + F5 to refresh the page.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

ninaudp

Thank you  Kays  ;D
I am giving it a try. I'll let you know if it resolves it.
Cheers!

ninaudp


ninaudp

Hi, am I the only on experiencing this issue with FireFox? Even the default theme is doing it.

Kays

The only way I could get it to add the scroll bars is by adding overflow: scroll; to:


.inner
{
padding: 1em 1em 0 0;
margin: 0 1em 0 0;
border-top: solid 1px #99a;
}


Don't know what else it will affect though.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

willerby

This is bugging me too...

On small screen size the 800 max width I have set for images historically in my forum, now burst out of the post frame in firefox. They didn't do this before upgrading to RC2...

Kays fix above works but adds ugly scroll bars in the post text itself regardless of whether a phot is there or not. Can anyone suggest a css fix for Firefox? I've reduced image limiti to 600 for new posts but all my old stuff now looks bad...

W

Kays

For posted images, once the size is set, you need to go in to modify the message and img tag to get it to resize. Which is a bit if a pain.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

willerby

Just googled some MySQL code to find and replace all 800 width image tags in the database. Took less than an hour to reduce them all to 600 width and reset the heights appropriately. Thanks anyway.

Does anyone know why Firefox should suddenly start breaking frames with images after RC2?

Kays

It's the Curve theme. Switch to the Core theme and you'll see the behaviour is different.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

willerby

That would explain it...

Surely it can't be that difficult to offer a temporary fix then?

Kays

It's due to the fact that everything is enclosed in divisions (<div>) and they behave diifferntly than the tables which were used before. One fix, albeit a bit ugly, is in index.template.php look for:


echo !empty($settings['forum_width']) ? '


and add after it:


echo '<table><tr><td>';


Then look the same code again in template_html_below() and add before it:


echo '</td></tr></table>';


Also in the index.css for .post and .inner change the overflow to visible

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: