---
title: "Discussion on \"Previous Sibling Selector in CSS\" | Hashnode"
description: "Discussion on \"Previous Sibling Selector in CSS\". Sorry, no previous sibling selector exists in CSS; so in pure CSS you can't target the sibling before an empty element - or can you?\nRearrange the display order using flexbox and the order property and then use the next-sibling selector. Technically ..."
url: "https://hashnode.com/posts/previous-sibling-selector-in-css/62e0c0b938585e9ea5177744"
---

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

Discussion

# [Previous Sibling Selector in CSS](https://panda-code.hashnode.dev/previous-sibling-selector-in-css?utm_source=hashnode&utm_medium=feed)

Sorry, no previous sibling selector exists in CSS; so in pure CSS you can't target the sibling before an empty element - or can you? Rearrange the display order using flexbox and the order property and then use the next-sibling selector. Technically ...

Jul 27, 2022 · 2 min read · panda-code.hashnode.dev  
Updated Aug 4, 2022  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#flexbox](https://hashnode.com/tag/flexbox)

## Written by

[Panda Codes](https://hashnode.com/@pandacode)

@pandacode

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

Six fingers make for faster coding

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
