Monday, 2 March 2015

OUTPUT FIGURE 7.6 IMAGES UNALIGNED, ALIGNED TOPO, ALUGNED MIDDLE,AND ALIGNED BOTTOM.

OUTPUT
FIGURE 7.6 IMAGES UNALIGNED, ALIGNED TOPO, ALUGNED MIDDLE,AND ALIGNED BOTTOM.












In addition to the reseeding values, several other nonstandard values for align provide g r ea term control over precisely where the image will be aligned within the line. The following values aren’t part of HTML 3.2 or 4.01,and are supported unevenly by various browsers. These four attributes aren’t approved in the proposed specification for XHTML 1.0, and your page won’t be verified as XHTML 1.0 – compliant if they’re used:

Align =”text top”

Aligns the top of the image with the top of the tallest text in the line (whereas align = “top” aligns the image with the top most item in the line). (Neither Netscape nor Internet Explorer handle this setting properly.)

Align = “abs middle”


Align the middle of the image with the middle of the largest item in the line. (Align = “middle” Usually aligns the Middle of the image with the baseline of the text, not its actual middle).

Align = “baseline”

Aligns the bottom of the image with the baseline of the text. Align = baseline’ is the same as align = “bottom”, But align = ‘baseline’ is a more descriptive name.

Align = “abs bottom “

Aligns the bottom of the image with the lowest item in the line (which maybe below the baseline of the text.)

The following code shows these alignment options at work:

No comments:

Post a Comment