View Single Post
Old 12-27-2023, 08:31 AM   #12
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,566
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Let's go by parts.

First at all, you said the following:

Quote:
A "Full page" image and text flowing round it is a nonsense in an ebook.
Three times I asked you why is a nonsense, why is a nonsense a full page image or a full page table in an ebook. You was not able to answer that question. Why? Because is not a nonsense; your statement was an error.

Also you wrote the following:

Quote:
You don't know what size a page is, but you can make an image approximately fit the screen with css
height: auto;
width: 95%;
( or vice versa)
That's not true. With:

Code:
  width: 95%;
  height: auto;
you won't get a full page image if the image has a landscape layout. And the "vice versa" is impossible (it seems you write things that you never bothered to fact-check). For that reason, when I wrote:

Quote:
if instead of 95% I will employ 950%, the image will be ten times bigger?
was not a stupid statement, by the contrary, was a smart one. Because is exactly the same to use 95%, 950% or 25% or whatever value you want to use because PERCENTAGE UNITS IN HEIGHT DOESN'T WORK! For "height" you need to use "vh", "vmax", "px", "em", etc., etc., but not %. So, your "vice versa" doesn't work. To use %, you need to previously set the height of the container and, how do you set such container height? What units do you use to set the container height? You can't use again "%" (I doubt those questions have ever crossed your mind; of course, I know how to deal with such situations).

Be sincere. You build your epubs from Word and turn it into an ebook with Calibre. Because of that, your knowledge of CSS and HTML is very limited, you barely know the basics. That is not a sin, since no one is born knowing. What is a sin is advising someone who is looking for help, like the OP, from ignorance, pretending to be an expert and specialist. To you, the design of an epub must be similar to what can be achieved with a typewriter.

Today's epub is an epub3 built as follows:

1) First, to employ the best code available for an epub2 (this is the fallback code).

2) Above the previous code, based on @support, the epub3 code is incorporated (I give you a simple example so you can understand it: you want to center something vertically as perfectly as possible. In the epub2 code, you establish a top margin that adjusts, more or less, to the desired position. With the epub3 code, you override the top margin and use "display: flex" and center vertically with the flex-box properties).

3) Add a toc.ncx to the epub so that epub3 can be read by epub2 readers. Of this way, the best of both world will be in the hand of a reader. (Of course, you have to work more; of that way and following with the example, if the ereader has support for epub3, things will be displayed perfectly vertically centered, if not, it will be vertically center more or less well. The same is valid for all the others properties).

In the future, if you want to help someone who comes to MR seeking advice, keep quiet, you'll be doing him/her a big favor.

Last edited by RbnJrg; 12-27-2023 at 08:42 AM.
RbnJrg is offline   Reply With Quote