Return to Snippet

Revision: 12858
at March 30, 2009 21:41 by hotdiggity


Initial Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
	<head>
		<title>Vertical align type with image</title>
		<style>
		
		p a {
			border: 1px solid #ccc;
			display: block;
			font-family: helvetica, arial, sans serif;
			font-size: 0.5em;
			}

		img.alignment {
			vertical-align: middle;
		}

		img.icon {
			width: 25px;
	 		height: 25px;
	 		margin-right: 5px;
		}
		</style>
	</head>
	<body>
		<p>
			<a href="#"><img class="alignment icon" src="images/twitter.png" alt="icon">Follow us on Twitter!</a>
		</p>
	</body>
</html>

Initial URL

                                

Initial Description
A replacement for now deprecated align attribute:
<img>

Initial Title
Vertical align type with image

Initial Tags
css, html

Initial Language
CSS