Thread: <wbr>
View Single Post
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,615
Karma: 9500498
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