---
title: "Discussion on \"Css - 水平置中、垂直置中的各種方法\" | Hashnode"
description: "Discussion on \"Css - 水平置中、垂直置中的各種方法\". 使用 CSS 將 div 內的文字(inline element)或另一個 div (block element) 水平垂直置中的方法"
url: "https://hashnode.com/posts/css-ceter-horizontally-and-vertically/6500161c973957a55214f877"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Css - 水平置中、垂直置中的各種方法](https://yachuh.hashnode.dev/css-ceter-horizontally-and-vertically?utm_source=hashnode&utm_medium=feed)

使用 CSS 將 div 內的文字(inline element)或另一個 div (block element) 水平垂直置中的方法

Sep 12, 2023 · 4 min read · yachuh.hashnode.dev  
Updated Oct 15, 2023  
Read the article

-   [#center-a-div](https://hashnode.com/tag/center-a-div)
-   [#flexbox](https://hashnode.com/tag/flexbox)
-   [#css](https://hashnode.com/tag/css)
-   [#grid](https://hashnode.com/tag/grid)
-   [#position-property](https://hashnode.com/tag/position-property)

## Written by

[Ya Chu](https://hashnode.com/@yachuh)

@yachuh

  
[View profile](https://hashnode.com/@yachuh)

Embarking on the Frontend Development Journey

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
