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;
}
|