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.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

miriam_e: from my drawing MoonGirl (Default)
miriam_e

March 2026

S M T W T F S
12 34567
89 1011 121314
15161718192021
22 232425 262728
29 30 31    

Style Credit

Expand Cut Tags

No cut tags
Page generated Wednesday, 1 April 2026 01:36 pm
Powered by Dreamwidth Studios