Thanks for the replies. The problem with BuzzSaw's suggestion is that the scrollbars show up on the browser window, not the element (images, in my case), and the images still push the boundaries of their parent div so they blow up the formatting. The same is true of overflow:scroll and even overflow:hidden.
I did look at the source on the pre tag, but when I try to use that styling, all it does is set the width to 640px. It doesn't put the image into a scrollable box of its own. I found the relevant stylesheet by looking at the <head>, and checked out class=alt2, but that's just a couple of things about font size or something (don't remember right now but it wasn't relevant.)
What I did discover since I posted was that you can wrap the element inside another div such as this:
Code:
.handheldbox {
display:block;
width:300px;
height:300px;
overflow:scroll;
}
That works, but the problem is I'd have to go back through about 200 posts, find the ones with images, and edit those to put that new div around them! Aack.
Is there a way in css, or somehow, to say that you want a given element to be inside another div? I've tried
Code:
.thecontent img:before {'<div class="handheldbox">'}
and
.thecontent img:after {'</div>'}
but all that does is draw a box with nice scrollbars and then plop the outsize image on top of it, not inside it. Very frustrating.
(This is all for the purpose of making a handheld stylesheet for my web site. Everything is scaling nicely after about three solid days of fighting with it, except these blankety-blank images!)
Bookmarks