HTML – img align="absmiddle" alternative

An alternative way to have align, absmiddle in an img tag
The value absmiddle is not acceptable for the attribute align an img tag, in any standard version of HTML.
Alternatively we can replace the aling=”absmiddle” with style=”vertical-align: middle;”.

So instead of

<img src="myphoto.jpg" align="absmiddle" />

we can write

<img src="myphoto.jpg" style="vertical-align:middle;" />

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.