Align image vertically using the value super in HTML and CSS

Description

The following code shows how to align image vertically using the value super.

Example


<html>
<head>
<!--from  w  w  w  . j  a  va2  s  . co m-->

<style rel="stylesheet" type="text/css">
p {
font: 12pt arial;
}

img.super {
vertical-align: super;
}
</style>
</head>

<body>
<p><img class="super" src="http://www.java2s.com/style/download.png"
alt="plane" width="74" height="74" />
The image is vertically aligned using the value super </p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Align image vertically using the value super in HTML and CSS