Hello all,
In a previous thread I mentioned I found the below ebook-reader :
https://f-droid.org/en/packages/com.github.axet.bookreader/
Currenly I've added an image (by hand) and am trying to get it to stretch to half a smartphones screen width. But no matter what I try (and which works in a HTML page on a PC(1) ) I can't find how to make that happen.
(1) 'width=50%', 'width="50%"', 'style="width:50%;"' and using a CSS file.
Question:
Am I supposed to be able to resize images in an epub(2), and if so how is that done ?
(2) the above epub reader does have "scale image(s) to fill the screen" option though, but thats not quite what I was after.
Hello all,
In a previous thread I mentioned I found the below ebook-reader :
https://f-droid.org/en/packages/com.github.axet.bookreader/
Currenly I've added an image (by hand) and am trying to get it to stretch to half a smartphones screen width. But no matter what I try (and which works in a HTML page on a PC(1) ) I can't find how to make that happen.
(1) 'width=50%', 'width="50%"', 'style="width:50%;"' and using a CSS file.
Question:
Am I supposed to be able to resize images in an epub(2), and if so how is that done ?
(2) the above epub reader does have "scale image(s) to fill the screen" option though, but thats not quite what I was after.
You seem to have only half the story here. You're making
your own epub file as HTML and CSS in a ZIP? I don't understand the syntax above.
HTML: <IMG WIDTH=50% HEIGHT=50%> (it also works with quotes: "50%")
Or <IMG STYLE="width: 50%; height: 50%;">
Or in either a STYLE block or a CSS file: IMG {width: 50%; height: 50%;}
(it also works with quotes: "50%")
And you can also use an ID:
(it also works with quotes: "50%")
Make that "it *only* works with".
And you can also use an ID:
Or a class. Yes, I tried that too. I even tried to to put a "style=" attribute into the image tag itself. Nothing worked.
Officially attributes are supposed to be in quotes if non-numeric.(it also works with quotes: "50%")
Make that "it *only* works with".
Some people even put numbers in quotes. It works either way.
I just tested it on IE and FF.
Interesting. I've never dealt with an ebook reader.
I guess it's not the same as basic HTML, even though
it claims to be.
"basic HTML" ? Never heard of that.
FYI, the html variant used in epub's is called XHTML (as I found yesterday). Its a bit more strict than the HTML implemented in webbrowsers. Including that *all* arguments to attributes need to be in double-quotes, regardless
of if they are values or not.
For instance, I
can't get a "<hr/>" to display.
So I guess you'd need to figure out what version of XHTML you have and
then get the docs for it.
For instance, I can't get a "<hr/>" to display.
Isn't that "<hr />" ?
Newyana2 wrote:
So I guess you'd need to figure out what version of XHTML you have and
then get the docs for it.
:-) Yep, thats what I've been trying to do.
So I guess you'd need to figure out what version of XHTML you have and
then get the docs for it.
:-) Yep, thats what I've been trying to do.
<https://www.w3.org/TR/epub>
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:10:46 |
Calls: | 9,709 |
Calls today: | 4 |
Files: | 13,740 |
Messages: | 6,181,033 |