This was a brief test, and nothing really came of it as I ran out of time when I was testing, and didn't get back to it afterwards. But it seems that this will help place the image inside a page on the screen.
One thing I noticed was that the caption consistently went to the next page.
I think the main problem stems from the fact that HTML which is the basis for the ePub format isn't very page centric. CSS3 and to some extend CSS2 tried to address this, however these attributes aren't a part of the ePub spec. I really wish it had been.
ann castro - 2011-01-21 19:22:11 - In reply to message 4 from Asbjorn Grandt
Not working at all for ADE. It's like I hadn't done anything. :-(
This is driving me nuts. ADE doesn't react to width: 100%; in the css. But it does take width="100%" in the html.
It doesn't like max-width in the html neither, though.
It has been a horrible week and I am really tired. My brain is doing weird things...like if I replace all photo class definition with the photo call and an added width.... will this ever mess up me img heights or not...
(tomorrow morning well rested, I'll probably be laughing at myself....)
Asbjorn Grandt - 2011-01-21 19:36:24 - In reply to message 5 from ann castro
From what I understand the page handling is one of the issues that is being addressed in the next version of the ePub specification, but we will be stuck with the current one for ages to come.
The problem is that HTML in general doesn't have any concept about height, it's designed to flow as high as needed unless it's a fixed height is specified, by saying 100% you are allowing it to be as high as the entire HTML page.