# Rebuilding a comment component with modern CSS

DevFeed: [Rebuilding a comment component with modern CSS](<https://devfeed.tech/articles/rebuilding-a-comment-component-with-modern-css-45267.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/comment-component/>)

Author: Ahmad Shadeed

Published: 2023-06-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [layout](<https://devfeed.tech/topics/layout.md>), [HTML](<https://devfeed.tech/topics/html.md>)

Tags: [comment](<https://devfeed.tech/tags/comment.md>), [component](<https://devfeed.tech/tags/component.md>), [css](<https://devfeed.tech/tags/css.md>), [flexbox](<https://devfeed.tech/tags/flexbox.md>), [has](<https://devfeed.tech/tags/has.md>), [html](<https://devfeed.tech/tags/html.md>), [layout](<https://devfeed.tech/tags/layout.md>), [subgrid](<https://devfeed.tech/tags/subgrid.md>)

## AI overview

A tutorial on rebuilding a nested comment component layout with modern CSS. It explores HTML list structure, indentation and spacing, and CSS features including flexbox, container queries, style queries, :has, and subgrid.

## Source excerpt

Building a comment component with modern CSS like flexbox, logical properites, :has, style queries, and subgrid.