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;" />
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s