vertical-align: top;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
<head>
<title>vertical-align</title>
<style type='text/css'>
p {
font: 12px sans-serif;
}
p#control {
font-size: 100px;
margin: 5px 0;
}
p#control span {
border: 1px solid rgb(200, 200, 200);
background: rgb(244, 244, 244);
}
p#control span span {
vertical-align: top;
font-size: 20px;
background: white;
border: 1px solid black;
}
</style>
</head>
<body>
<p>
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm
</p>
<p id='control'>
<span>Nn Oo Pp <span>Top</span></span>
</p>
<p>
Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz
</p>
</body>
</html>
Related examples in the same category