Quote:
Originally Posted by Quoth
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:
<p 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