# 3.9 排版 - vertical-align 對齊

## 範例一

針對同層級的元素，在水平方向排列時，該如何對齊。

* baseline：字母 x 下緣處，就叫做基準線。(這是預設值)
* top：上方切齊。
* middle：中間切齊。
* bottom：下方切齊。

例：

{% embed url="<https://codepen.io/carlos411/pen/zYKEweQ>" %}

## 範例二：縫隙問題

div 標籤內，僅一張圖。

{% embed url="<https://codepen.io/carlos411/pen/YzGPBBa>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webmix.cc/html-and-css/3.-css/3.15-pai-ban-guan-wu-verticalalign-dui-qi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
