en.javascript.info/03-more/11-css-for-js/06-css-center/vertical-align/index.html
Ilya Kantor f301cb744d init
2014-10-26 22:10:13 +03:00

20 lines
903 B
HTML
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
Картинка размером в <code>30px</code>, значения <code>vertical-align</code>:
<pre>
baseline(по умолчанию) <img src="http://js.cx/clipart/30.png">
middle(по середине) <img src="http://js.cx/clipart/30.png" style="vertical-align: middle">
sub<sub>вровень с &lt;sub&gt;</sub> <img src="http://js.cx/clipart/30.png" style="vertical-align: sub">
super<sup>вровень с &lt;sup&gt;</sup> <img src="http://js.cx/clipart/30.png" style="vertical-align: super">
text-top(верхняя граница вровень с текстом) <img src="http://js.cx/clipart/30.png" style="vertical-align: text-top">
text-bottom(нижняя граница вровень с текстом) <img src="http://js.cx/clipart/30.png" style="vertical-align: text-bottom">
</pre>
</body>
</html>