Image Alignment
Centered Images
There isn't any value in the <img> tag's align
attribute that centers an image on the page. To center an image, place the
<img> tag inside either a <center> tag or
a <p> or <div> tag that specifies
align="center".
|
The renaissance was an age in which more individuals felt the value of their human being.
Martin Luther was nailed to the Church door at Wittenberg for
selling Papal indulgences. He died a horrible death, being excommunicated by a
bull. It was the painter Donatello's interest in the female nude that made him
the father of the Renaissance.
|
<p>
The renaissance was an age in which more
individuals felt the value of their human
being.
</p>
<center>
<img /> <!-- No align -->
</center>
<p>
Martin Luther was nailed to the Church door
at Wittenberg for selling Papal indulgences.
He died a horrible death, being excommunicated
by a bull. It was the painter Donatello's
interest in the female nude that made him the
father of the Renaissance.
</p>
You can't make text flow around the image without using a table, but you
can have one line of text beside the image. You can use the usual align
attributes such as bottom, middle or top. The entire grouping of text and
image is centered.
|
It was an age of great inventions and discoveries.
"Gutenberg"
Gutenberg invented the Bible. Sir Walter Raleigh is a historical
figure because he invented cigarettes. Another important invention was the
circulation of blood. Sir Francis Drake circumsised the world with a 100-foot
clipper.
|
<p>
It was an age of great inventions and
discoveries.
</p>
<p align="center">
"Martin Luther"
<img ... align="middle" />
</p>
<p>
Gutenberg invented the Bible. Sir Walter
Raleigh is a historical figure because he
invented cigarettes. Another important
invention was the circulation of blood.
Sir Francis Drake circumsised the world
with a 100-foot clipper.
</p>
|