View on GitHub

reading-notes

Duckett HTML Ch. 16 Images (p. 406-427)

Controlling Sizes of Images in CSS

img.large {
width: 500px;
height: 500px;}
img.medium {
width: 250px;
height: 250px;}
img.small {
width: 100px;
height: 100px;}

Alignning Images Using CSS

img.align-left {
float: left;
margin-right: 10px;}
img.align-right {
float: right;
margin-left: 10px;}
img.medium {
width: 250px;
height: 250px;}

Centering Images Using CSS

iimg.align-center {
display: block;
margin: 0px auto;}
img.medium {
width: 250px;
height: 250px;}

Repeating Imgages