Vertical Alignment - HTML Help
Có thể bạn quan tâm
| Syntax: | vertical-align: <value> |
|---|---|
| Possible Values: | baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage> |
| Initial Value: | baseline |
| Applies to: | Inline elements |
| Inherited: | No |
The vertical-align property may be used to alter the vertical positioning of an inline element, relative to its parent element or to the element's line. (An inline element is one which has no line break before and after it, for example, EM, A, and IMG in HTML.)
The value may be a percentage relative to the element's line-height property, which would raise the element's baseline the specified amount above the parent's baseline. Negative values are permitted.
The value may also be a keyword. The following keywords affect the positioning relative to the parent element:
- baseline (align baselines of element and parent)
- middle (align vertical midpoint of element with baseline plus half the x-height--the height of the letter "x"--of the parent)
- sub (subscript)
- super (superscript)
- text-top (align tops of element and parent's font)
- text-bottom (align bottoms of element and parent's font)
The keywords affecting the positioning relative to the element's line are
- top (align top of element with tallest element on the line)
- bottom (align bottom of element with lowest element on the line)
The vertical-align property is particularly useful for aligning images. Some examples follow:
IMG.middle { vertical-align: middle } IMG { vertical-align: 50% } .exponent { vertical-align: super }Home, Forums, Reference, Tools, FAQs, Articles, Design, Links
Copyright © 1996 - 2006.
All rights reserved.
Từ khóa » Html Column Vertical Alignment
-
HTML |
Valign Attribute - GeeksforGeeks Vertical-align - CSS: Cascading Style Sheets - MDN Web Docs
Vertical Align Middle Inside Div Columns - Stack Overflow
HTML Valign Attribute - HTML Tutorials - W3resource
CSS Vertical-align Property - W3Schools
CSS Table Alignment - W3Schools
Vertical Alignment - Bootstrap
Vertical Alignment · Bootstrap V5.0
Vertical Alignment - Tailwind CSS
How To Vertical Align A DIV In Bootstrap - Tutorial Republic
CSS Vertical Align For Everyone (Dummies Included) - OutSystems
Vertical-align - CSS-Tricks
Bootstrap 4 Vertical Center. How To Vertically Align Anything - Medium
(Archives) HTML: Tables: Alignment Within A Table | UW-Eau Claire
Copyright © 2022 | Thiết Kế Truyền Hình Cáp Sông Thu