We would like to know how to align image along with input and label.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
img {<!-- w ww .jav a2 s .c o m-->
height: 50px;
width: 50px;
vertical-align: middle;
}
p {
border: 1px solid black;
}
</style>
</head>
<body>
<p>
<label for="something">Something Since</label>
<input type="text" size="7" readonly />
<img src="http://www.java2s.com/style/download.png" />
</p>
</body>
</html>
The code above is rendered as follows: