1
edit
Changes
→Usage Examples
== Usage Examples ==
<pre>img{vertical-align:baseline;} /*The element is placed on the baseline of the parent element*/</pre><pre>img{vertical-align:sub} /*Aligns the element as it was subscript*/</pre><pre>img{vertical-align:super} /*Aligns the element as it was superscript*/</pre><pre>img{vertical-align:top} /*The top of the element is aligned with the top of the tallest element on the line*/</pre><pre>img{vertical-align:text-top} /*The top of the element is aligned with the top of the parent element's font*/</pre><pre>img{vertical-align:middle} /*The element is placed in the middle of the parent element*/</pre><pre>img{vertical-align:bottom} /*The bottom of the element is aligned with the lowest element on the line*/</pre><pre>img{vertical-align:text-bottom} /*The bottom of the element is aligned with the bottom of the parent element's font*/</pre><pre>img { vertical-align: -5px; }img{vertical-align:length10mm; } </pre> <pre>img{vertical-align:% } /*Aligns the element in a % value of the "line-height" property. Negative values are allowed*/img{vertical-align: 125%;} img { vertical-align: -50%; } </pre>
== Notes ==