> For the complete documentation index, see [llms.txt](https://docs.webmix.cc/html-and-css/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.webmix.cc/html-and-css/3.-css/3.25-guan-wu-outline.md).

# 3.23 關於 outline

## 說明

outline(輪廓) 是一個位在 border 邊框(border)外面的線，可以設定粗細、線的類型、顏色、位移。outline 並不會影響周圍的元素。

註：outline 並不能針對某一邊去設定。

## 語法

```css
outline: 1px solid red; /* 預設是 none */
outline-offset: 5px;    /* 設定向內或向外擴展，也可以是 -5px，就會向內縮 */
```

## 範例

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.25-guan-wu-outline.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.
