Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML: remove the align="middle" from the IMG tag #43

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 0 comments
Open

HTML: remove the align="middle" from the IMG tag #43

GoogleCodeExporter opened this issue Apr 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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.

Original issue reported on code.google.com by aureliojargas@gmail.com on 4 Aug 2010 at 11:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant