Status: Accepted
Owner: aureliojargas
Labels: Type-Defect Priority-Medium

New issue 43 by aureliojargas: HTML: remove the align="middle" from the IMG  
tag
http://code.google.com/p/txt2tags/issues/detail?id=43

Jonatan Liljedahl wrote me:

I think you have gotten the IMG align tag the wrong way, here's a quote
from the HTML spec:

13.7.4 Alignment

Attribute definitions

align = bottom|middle|top|left|right
    Deprecated. This attribute specifies the position of an IMG, OBJECT,
or APPLET with respect to its context.

The following values for align concern the object's position with
respect to surrounding text:

    * bottom: means that the bottom of the object should be vertically
aligned with the current baseline. This is the default value.
    * middle: means that the center of the object should be vertically
aligned with the current baseline.
    * top: means that the top of the object should be vertically aligned
with the top of the current text line.

Two other values, left and right, cause the image to float to the
current left or right margin. They are discussed in the section on
floating objects.

But in the code it seems your thought is that it would affect horisontal
alignment. Note that 'middle' refers to vertical alignment, and that
'left' and 'right' is not about alignment but of floating images, (which
is often nice if the image is inside text). But to center an image you
should not use align=middle.


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list

Reply via email to