View Single Post
Old 10-10-2017, 02:22 PM   #19
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Here are examples of CSS codes for images (larger images):

.image1 {
display: block;
text-align: center;
padding: 0;
margin: 0;
}
.image2 {
height: 100%;
max-width: 100%;
}

Here is the code I use in the HTML files:

<div class="image1">

<img alt="Image" src="image.jpg" class="image2"/>

</div>

When the image is a small image file for a publisher or something similar, use the following CSS rule for "image2":

.image2 {
height: auto;
width: auto;
}
deback is offline   Reply With Quote