Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-19-2022, 02:33 PM   #16
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,150
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by JSWolf View Post
Is 80px large enough for a 300dpi 6" screen? I would think that's going to be rather small.
It is for what it is!
Tested on paper and eink at 300dpi with barcode scanner app on ancient Android phone. Small Line art images or QR code is typical use.
Quoth is offline   Reply With Quote
Old 05-19-2022, 06:37 PM   #17
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,094
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by Quoth View Post
Yes, I use css, not the HTML. The HTML img tag has the css class. Some examples:
Code:
.pic_half {
  padding-top: 3pt;
  height: auto;
  width: 50%
}

.pic_small {
  padding-left: 3pt;
  padding-right: 3pt;
  padding-top: 3pt;
  height: 80px;
  width: auto
}

.pic_wide {
  padding-top: 3pt;
  height: auto;
  width: 75%
}
Several pic_small can be on same line, hence L & R padding.
pic_half and pic_wide are intended for single images per paragraph.
I don't put text in the same paragraph.
Thanks @Quoth. I haven't tried controlling the sizing of the image via css as I thought that was what the width: & height: were for. I would use something like this...

PHP Code:
<class="centre"><img alt="Simon and Schuster logo" src="images/Simon___Schuster.png" width="65" height="100"/></p
and then adjust width+height to my sizing, ensuring the aspect ration is maintained.

I'll try your css for my next ebook. Do you still use the inline width/height? IIRC it is still required?

Thanks
Karellen is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 12:27 PM.


MobileRead.com is a privately owned, operated and funded community.