---
title: "#pseudo-elements articles | Hashnode"
description: "Explore 50 articles tagged #pseudo-elements on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/pseudo-elements"
---

Tag

# #pseudo-elements

50 posts · 1 followers

[YI-LIN CHEN (Eva)](https://hashnode.com/@im1010ioio) · [Sep 23, 2025](https://hashnode.com/posts/css-responsive-table-custom-order-list/68d2c269dd8fe6765eaa7b3b)

### [#72 CSS 偽元素的進階用法：用 ::before 與 ::after 做 RWD 表格 & 客製化樣式的序號清單 (ol, oder list)](https://im1010ioio.hashnode.dev/css-responsive-table-custom-order-list?utm_source=hashnode&utm_medium=feed)

⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。 上一篇我們學到了 ::before 與 ::after 的基本用法，像是輕鬆添加引號、點綴裝飾性內容、清除浮動，甚至是製作小圖示。 這次，讓我們來探索更進階的用法，解決兩個常見的網頁設計難題：<table> 手機版與客製化 <ol> 清單。 一、RWD Table：會變身的響應式表格 (HTML data-\*) 要做到 <table> RWD 手機版，需要運用 HTML 的 data-\* 屬性，然後再使用 ...

1 min read · [im1010ioio.hashnode.dev](https://im1010ioio.hashnode.dev/css-responsive-table-custom-order-list?utm_source=hashnode&utm_medium=feed)

[YI-LIN CHEN (Eva)](https://hashnode.com/@im1010ioio) · [Sep 22, 2025](https://hashnode.com/posts/css-pseudo-before-after/68d17012a4b53c6f701b008a)

### [#71 CSS 偽元素的妙用：「::before」 與「::after」的常見用法](https://im1010ioio.hashnode.dev/css-pseudo-before-after?utm_source=hashnode&utm_medium=feed)

⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。 之前寫的文章，雖然有提到過，但是居然沒有好好地解釋過 CSS 的偽元素（Pseudo），也就是 ::before 與 ::after。這超級實用的，怎麼能沒有呢？所以今天就來好好地認識一下它們吧！ 它們用在不修改 HTML 的情況下加入裝飾性內容，是前端開發的必備技能。 ::before 與 ::after，簡單來說，就像是你在 HTML 元素的前後，額外加上了兩個裝飾用的「影子」元素。而且，你完全不需要去動...

1 min read · [im1010ioio.hashnode.dev](https://im1010ioio.hashnode.dev/css-pseudo-before-after?utm_source=hashnode&utm_medium=feed)

[YI-LIN CHEN (Eva)](https://hashnode.com/@im1010ioio) · [Sep 18, 2025](https://hashnode.com/posts/css-pseudo-target-lightbox-tab/68cc28081dda1a66cb97f292)

### [#67 CSS :target 應用：純 CSS 光箱、純 CSS Tab 頁籤](https://im1010ioio.hashnode.dev/css-pseudo-target-lightbox-tab?utm_source=hashnode&utm_medium=feed)

⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。 上一篇我們提到 CSS 的 :target 的偽類，可以針對 HTML 元素是否為目標狀態而去調整樣式。所以，如果延伸想一想，有許多 UI 都是會有狀態的，其實是可以做許多應用的。 上一篇著重在滾動時的目標狀態，這一篇我們來試試把這種目標狀態應用在別的地方吧！ 一、純 CSS 光箱 光箱（Lightbox）效果是網頁中非常常見的 UI，通常用於點擊圖片或按鈕後，跳出一個覆蓋整個畫面的視窗來顯示更多內容。以...

3 min read · [im1010ioio.hashnode.dev](https://im1010ioio.hashnode.dev/css-pseudo-target-lightbox-tab?utm_source=hashnode&utm_medium=feed)

[YI-LIN CHEN (Eva)](https://hashnode.com/@im1010ioio) · [Sep 17, 2025](https://hashnode.com/posts/css-pseudo-target-and-target-text/68cace72ff3f9e133c1b63a3)

### [#66 CSS :target / ::target-text —— 在滾動時，強調 hash 連結的目標](https://im1010ioio.hashnode.dev/css-pseudo-target-and-target-text?utm_source=hashnode&utm_medium=feed)

⚠️ 本篇文章已搬遷至 css.im1010ioio.dev，請至新站閱讀完整版。 昨天我們讓很長內容的滾動範圍可以用 hash 連結滑順地滾動，今天我們要進一步優化它。 當網頁內容很長，使用者滾來滾去時可能會搞不清楚目前位置，所以今天我要來用 CSS 最簡單的方法 Highligh hash 連結的目標。 今天我們要介紹 2 個 CSS 選擇器語法： :target：針對 HTML 元素去調整樣式 ::target-text：針對指定的「文字片段」去調整樣式 非常簡單喔！讓我們一起...

1 min read · [im1010ioio.hashnode.dev](https://im1010ioio.hashnode.dev/css-pseudo-target-and-target-text?utm_source=hashnode&utm_medium=feed)

[Sunkanmi Fafowora](https://hashnode.com/@SunkanmiFafowora) · [Jun 10, 2025](https://hashnode.com/posts/is-open-the-same-as-popover-open/684812c868cb29f9c75a89c6)

### [Is :open the same as :popover-open?](https://sunkanmi.hashnode.dev/is-open-the-same-as-popover-open?utm_source=hashnode&utm_medium=feed)

Obviously, the answer is no. But, the next question you’d ask is how? In the MDN documentation, we clearly have :open being defined as “The :open CSS...

5 min read · [sunkanmi.hashnode.dev](https://sunkanmi.hashnode.dev/is-open-the-same-as-popover-open?utm_source=hashnode&utm_medium=feed)

[himanshu](https://hashnode.com/@Himanshu-) · [Jan 28, 2025](https://hashnode.com/posts/understanding-pseudo-classes-and-pseudo-elements-in-css/679888390fecfcd425407147)

### [Understanding Pseudo Classes and Pseudo Elements in CSS](https://blogs-himanshu.hashnode.dev/understanding-pseudo-classes-and-pseudo-elements-in-css?utm_source=hashnode&utm_medium=feed)

Pseudo Classes Pseudo Classes are the keywords which is used after the selector which help in defining or designing the state of the selector. For example, if you use CSS, you must have used :hover keyword in buttons or links, this is the pseudo clas...

6 min read · [blogs-himanshu.hashnode.dev](https://blogs-himanshu.hashnode.dev/understanding-pseudo-classes-and-pseudo-elements-in-css?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/understanding-pseudo-classes-and-pseudo-elements-in-css/679888390fecfcd425407147)

[Nicole Gathany](https://hashnode.com/@nicole-gathany) · [Oct 17, 2024](https://hashnode.com/posts/how-to-style-child-elements-in-bootstrap-components/671112b6a0e807d0ac141904)

### [How to style child elements in Bootstrap Components](https://nicolegathany.hashnode.dev/how-to-style-child-elements-in-bootstrap-components?utm_source=hashnode&utm_medium=feed)

During my time at Teachers Pay Teachers (TpT) on the Easel team, we once had a Customer-Delight-o-than or rather a sprint where we only focused on implementing features and changes to Easel that our users requested. I took on the seemingly easy task ...

5 min read · [nicolegathany.hashnode.dev](https://nicolegathany.hashnode.dev/how-to-style-child-elements-in-bootstrap-components?utm_source=hashnode&utm_medium=feed)

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou) · [Sep 6, 2024](https://hashnode.com/posts/css3-selectors-with-examples/66dac0a12fa3c61eb9002e33)

### [Mastering CSS3 Selectors: A Complete Guide with Examples](https://eleftheriabatsou.hashnode.dev/css3-selectors-with-examples?utm_source=hashnode&utm_medium=feed)

Unlock the Full Potential of CSS3 Selectors with Practical Examples and Tips

9 min read · [eleftheriabatsou.hashnode.dev](https://eleftheriabatsou.hashnode.dev/css3-selectors-with-examples?utm_source=hashnode&utm_medium=feed)

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou) · [Sep 1, 2024](https://hashnode.com/posts/css3-pseudo-classes-and-pseudo-elements-an-in-depth-look/66d4881af406310be4cbae7e)

### [CSS3 Pseudo-Classes and Pseudo-Elements: An In-Depth Look](https://eleftheriabatsou.hashnode.dev/css3-pseudo-classes-and-pseudo-elements-an-in-depth-look?utm_source=hashnode&utm_medium=feed)

(+ Codepen Examples)

6 min read · [eleftheriabatsou.hashnode.dev](https://eleftheriabatsou.hashnode.dev/css3-pseudo-classes-and-pseudo-elements-an-in-depth-look?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/css3-pseudo-classes-and-pseudo-elements-an-in-depth-look/66d4881af406310be4cbae7e)

[Ayush Nighoskar](https://hashnode.com/@ayush9) · [Feb 25, 2024](https://hashnode.com/posts/elevating-css-mastery-pseudo-elements-css-sprites-and-display-magic/65db40fd8f742dbd6ef1a005)

### [Elevating CSS Mastery: Pseudo-Elements, CSS Sprites, and Display Magic](https://ayushn.hashnode.dev/elevating-css-mastery-pseudo-elements-css-sprites-and-display-magic?utm_source=hashnode&utm_medium=feed)

Elevating CSS Mastery: Pseudo-Elements, CSS Sprites, and Display Magic

2 min read · [ayushn.hashnode.dev](https://ayushn.hashnode.dev/elevating-css-mastery-pseudo-elements-css-sprites-and-display-magic?utm_source=hashnode&utm_medium=feed)
