Thuộc tính vertical-align
Thuộc tính vertical-align dùng để căn chỉnh vị trí dọc của phần tử nội tuyến (inline) hoặc ô bảng (table-cell) so với baseline của dòng văn bản.
Ví dụ minh họa
<!DOCTYPE html>
<html>
<head>
<style>
img {
vertical-align: text-bottom;
}
</style>
</head>
<body>
<p>Đây là <img src="https://www.tutorialspoint.com/videotutorials/assets/videos/courses/155/images/course_155_image.png" alt="Video Tutorial" width="200" height="150"> hình ảnh demo.</p>
</body>
</html>
Các giá trị thường dùng: baseline (mặc định), top, middle, bottom, text-top, text-bottom, sub, super, hoặc giá trị độ dài/phần trăm.