To create hairline splitters in Webflow, you can use styled Div Blocks as lines between texts. These simulate thin borders or separators to divide content horizontally or vertically.
1. Insert Splitter Div Between Text Blocks
- Drag a Div Block from the Add panel and place it between the two text elements.
- Optionally, wrap your text and the splitter in a Flexbox container for layout control.
2. Style the Splitter as a Hairline
- Set the Div Block’s height (for horizontal) or width (for vertical) to 1px.
- Set the opposite dimension (width or height depending on direction) to 100% or a fixed px/em/rem size.
- Go to the Style panel, and set a background color (e.g., #DDD for light gray).
- For thin appearance on high-DPI screens, set height or width to 0.5px. Note: Webflow rounds to full pixels in some views, but it renders accurately in browsers that support subpixel rendering.
3. Control the Spacing
- Use margin or padding on the splitter or surrounding elements to control spacing above/below (for horizontal) or left/right (for vertical).
- Typical values: margin-top/margin-bottom: 1rem for a horizontal line.
4. Horizontal Split Example
- Add a Text Block, then the Splitter Div, then another Text Block all inside a Flexbox container set to vertical.
- Set the container’s Display to Flex, Direction to Vertical, and optional Align: Center.
5. Vertical Split Example
- Place two Text Blocks inside a Flexbox container set to horizontal.
- Insert the Splitter Div between them, set width to 1px, height to 100%, and apply a background color.
Summary
Use a thin, styled Div Block with fixed dimensions and background color to act as a hairline splitter between text blocks. Control its orientation and spacing using Webflow’s Flexbox layout and margin settings. For a hairline effect, apply a 0.5px size where supported.