View Single Post
Old 07-28-2024, 02:14 PM   #20
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,173
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Phssthpok View Post
This is on a Kobo, and the image is only about 200px in height.
Depending on the aspect of the image, I would make the height to 100%. For example, the cover.

I set img so it doesn't go off the screen. I don't use auto and I don't need it. It's just unneeded code.

Code:
img {
  max-height: 100%;
  max-width: 100%;
}
.height {
  text-align: center;
  text-indent: 0;
  height: 100%;
}
.width {
  text-align: center;
  text-indent: 0;
  width: 100%;
}

Last edited by JSWolf; 07-28-2024 at 02:20 PM.
JSWolf is offline   Reply With Quote