scrolling pic

Sunday, 13 September 2009 10:44 pm
miriam_e: from my drawing MoonGirl (Default)
[personal profile] miriam_e
Yay! I did it. The RandomWalks cartoons should no longer screw up peoples' friends pages because I've worked out how to make them scroll inside the page. The trick is to surround the image tag with div tags like this:
<div style="overflow: scroll"><img src="some_image" width="pixels" height="pixels"></div>
This puts scrollbars below and to the right of the picture so that if it doesn't fit in the page, instead of widening the table the picture accommodates the page.

Cool huh?

Took me a lot of detective work to figure this out. Couldn't find it documented anywhere.

Date: 2009-09-14 11:43 am (UTC)
From: [identity profile] miriam-e.livejournal.com
Hmmm... that's interesting.
Do you know what your home browser is? Version number may be important too (usually "Help" menu, "About" item).

Date: 2009-09-14 11:53 am (UTC)
From: [identity profile] greylock.livejournal.com
Heh. I know my way around a computer. :P

At home on both *nix and WinXP I have Firefox 3.0.14 on both machines (up upgraded the *nix machine tonight so it isn't a version issue).

And since it displays fine on my XP laptop but on neither of my home machines I'm going to take a punt that it's probably screen-res but in theory they'll all be set the same.

It's a mystery, but seems to me just me that's having the issue (and I used an FF plug-in to shrink the image so it's all good).

Profile

miriam_e: from my drawing MoonGirl (Default)
miriam_e

February 2026

S M T W T F S
123 4 567
891011121314
15161718192021
22232425262728

Style Credit

Expand Cut Tags

No cut tags
Page generated Sunday, 8 February 2026 03:43 pm
Powered by Dreamwidth Studios