Home Page | Table of Contents | View MTX File | Previous Page | Next Page

Floating Graphics


Introduction | Float Left | Float Right | Vertical Centering | Clear Tag | Examples

For a general discussion of graphics go to the Image Tags section.

Introduction

Version 2.0 HTML is somewhat limited when it comes to integrating text and graphics. For example, this line of text does not fill the space next to the picture, it wraps onto subsequent lines below the picture instead. Netscape introduced the idea of graphics that "float" alongside other page elements. You can choose to have a graphic float to either the left or right. Floating is cumulative; graphics will stack up several layers deep. This may lead to undesirable results. It is often necessary to terminate the floating property with the clear tag discussed below. For compatibility it is best to use floating graphics sparingly. [3.2]

Float Left

Flower Picture

This is an example of a graphic floating to the left. To use this property simply add the left alignment modifier (\) to the image tag: {=\picture Flower Picture=}. Text, lists, tables, and other elements will move up to fill the empty space next to the graphic. Alternate text is handled as for non-floating graphics.

Float Right

Flower Picture

This is an example of a graphic floating to the right. To use this property simply add the right alignment modifier (/) to the image tag: {=/picture Flower Picture=}. Text, lists, tables, and other elements will move up to fill the empty space next to the graphic. Alternate text is handled as for non-floating graphics.

Vertical Centering

This picture Flower Picture is centered vertically. To use this property simply add the center alignment modifier ($) to the image tag: {=$picture Flower Picture=}. The graphic is not truly floating and therefore does not need to be followed by a clear tag.

Clear Tag

The clear tag ({C}) is used to terminate the floating property. You must use the clear tag to avoid unwanted formatting problems. The use of the clear tag is illustrated in the following examples.

Examples

Flower Picture

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.

Flower Picture

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.

Flower Picture

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.{C}

Flower Picture

A list of items:

Flower Picture

col 1 col 2 col 3
row 1 one this is an example of a table three
row 2 four five six{C}

Flower Picture

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.

Flower Picture

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.

Flower Picture

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.{C}

Flower Picture This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. Flower Picture This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. This is a long paragraph of text that should spill over into the space around the pictures. {C}


   Author: Richard Rathe / rrathe@dean.med.ufl.edu
  Version: MTX 1.5 User's Manual
Copyright: 1996-97 by Richard Rathe
 Location: http://www.med.ufl.edu/medinfo/mtx/docs/float.html
  Created: June 1, 1996   Modified: July 7, 1997

Home Page | Table of Contents | View MTX File | Previous Page | Next Page