How do you get text to align on the right-hand side of an image?
Articles and Tips: qna
01 Dec 1996
Q.
Dear Ab-end: Since Novell is getting into the HTML page makeup arena through IntranetWare, I thought I'd ask a generic HTML question. How do you get text to align on the right-hand side of an image? All I get is the one line of text next to the image and the rest is below the image. Isn't HTML sophisticated enough to handle such a simple task?
--Needing More in Singapore
A.
Dear Needing: HTML is a markup language that is continually being updated and enhanced, and certain features simply aren't available in early versions of HTML. According to Laura Lemay's book "Teach Yourself Web Publishing with HTML 3.2 in 14 Days" (from Sams Net Premier imprint, you can't perform the task you described with HTML 2.0. To quote from this source, "In HTML 2.0, Netscape defined two new values for the ALIGN attribute of the >IMG> tag--LEFT and RIGHT. These new values have been incorporated into HTML 3.2 and are supported now by many browsers other than Netscape."
"The ALIGN=LEFT aligns an image to the left margin, and ALIGN=RIGHT aligns an image to the right margin. But using the attributes also causes any text following the image to be displayed in the space to the right or left of the image, depending on the margin alignment."
Here's a trick that might help you master web page creation. Purchase a copy of Netscape 3.0 Gold, which has the ability to save your favorite web pages locally, then present the codes that make the page what it is. You can learn a lot from other people's work if you take the time to analyze it carefully. Good luck!
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.