CSS Post
Category: ListBoth post and bullet are sub-components that form image-text lists. A post primarily emphasizes images or image collections, highlighting the role of visuals in information presentation – though it can also display multi-line text without images. For content-rich scenarios or when maximizing information display is desired, use post instead of bullet.
Basic Structure
A post mainly consists of a cover image and main content, with the following basic HTML structure:
<div class="_post">
<a rep="poster">
<img/>
</a>
<div class="_post-body">
<div rep="title"></div>
<div rep="brief"></div>
<div rep="byline"></div>
</div>
<div>
Simple Usage
The simplest usage includes only title and brief description:
rep=titleindicates the titlerep=briefindicates the brief description
- Output
- HTML
-
In 'Mija,' director Isabel Castro combined music documentaries with the style of 'Euphoria' and 'Clueless' to tell a more nuanced immigration story.
-
Image-Text Usage
Wrap cover images with rep=poster attribute tag. Cover images can be placed on either left or right side.
- Output
- HTML
Using Byline
byline indicates source attribution. The rep=byline tag can contain supplementary content beyond title and brief, such as keywords, author, publication time, etc.
- Output
- HTML
-
In 'Mija,' director Isabel Castro combined music documentaries with the style of 'Euphoria' and 'Clueless' to tell a more nuanced immigration story.362 September 22, 2022
-
Using Tags
Supports two types of small tags:
- Add small tags like
oc-badge,oc-flag,oc-bouyinrep=posterto indicate information characteristics - Use
headattribute for_postto output head value before the post - Use
tailattribute for_postto output tail value after the post
Note: The pseudo-elements generated by head and tail attributes are positioned relative to the post. Appropriate spacing should be added before/after the post when using them.
- Output
- HTML
-
In 'Mija,' director Isabel Castro combined music documentaries with the style of 'Euphoria' and 'Clueless' to tell a more nuanced immigration story.362 September 22, 2022

CNN In 'Mija,' director Isabel Castro combined music documentaries with the style of 'Euphoria' and 'Clueless' to tell a more nuanced immigration story.362 September 22, 2022
NEW -
Text Ellipsis
In addition to rep=title, text blocks can also include rep=brief and rep=byline as needed. If the title needs ellipsis handling, use _ell related styles.
For single-line or multi-line text ellipsis usage, click here to view.
- Output
- HTML
Full-width Display on Mobile
When content appears too crowded on mobile, adaptive approaches can be used, such as adding _split to indicate full-width display on mobile.
Multiple Images
Use rep=posters attribute tag to display image galleries. Place the photo wall component _wall inside the tag.
