vertical-align שולטת במיקום האנכי של אובייקטים.
הערכים הקבילים לתכונה זו הם: baseline, middle, sub, super, text-top, bottom, top.
הדפדפנים השונים מתייחסים לערכים באופן שונה: נטסקייפ תומך בכל פרט ל: sub, super, baseline. אקספלורר תומך רק ב sub ו-super בכל המדובר בטקסטים.
img {vertical-align: bottom}
| Value | Description |
| baseline | Default. The element is placed on the baseline of the parent element |
| sub | Aligns the element as it was subscript |
| super | Aligns the element as it was superscript |
| top | The top of the element is aligned with the top of the tallest element on the line |
| text-top | The top of the element is aligned with the top of the parent element's font |
| middle | The element is placed in the middle of the parent element |
| bottom | The bottom of the element is aligned with the lowest element on the line |
| text-bottom | The bottom of the element is aligned with the bottom of the parent element's font |
| length | |
| % | Aligns the element in a % value of the "line-height" property. Negative values are allowed |
אין תגובות:
הוסף רשומת תגובה